swiper icon indicating copy to clipboard operation
swiper copied to clipboard

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

Open broox opened this issue 1 year ago • 0 comments

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

  • [X] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] 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?

  • [X] I'm willing to open a PR

broox avatar Feb 10 '24 19:02 broox