Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pan around a zoomed in image by moving the mouse #7306

Closed
4 tasks done
broox opened this issue Feb 10, 2024 · 0 comments · Fixed by #7831
Closed
4 tasks done

Add ability to pan around a zoomed in image by moving the mouse #7306

broox opened this issue Feb 10, 2024 · 0 comments · Fixed by #7831

Comments

@broox
Copy link
Contributor

broox commented Feb 10, 2024

Clear and concise description of the problem

Currently, when you zoom in to an image, you have to click to grab the image and then drag it around to pan around the image.

Once zoomed in, I would like to be able to simply move my mouse to pan around the image.

Suggested solution

Either enable panning by mouse movement/hover by default, or add a new parameter (e.g. panOnHover) to the zoom module

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR
nolimits4web added a commit that referenced this issue Jan 2, 2025
* Add ability to pan around an image by mouse to close #7306

* Make the zoom module's panWithMouse param more descriptive

* reuse onTouchMove event

---------

Co-authored-by: Vladimir Kharlampidi <nolimits4web@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant