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

Panning Image Auto Zooms Out #105

Open
beatricelucaci opened this issue Jul 22, 2024 · 1 comment
Open

Panning Image Auto Zooms Out #105

beatricelucaci opened this issue Jul 22, 2024 · 1 comment

Comments

@beatricelucaci
Copy link

When using FancyBox for WordPress for a WP-post:

  1. Click an image to open in the lightbox
  2. Click the image in lightbox to zoom in on the image
  3. Pan an image by holding down a mouse click
  4. Release the mouse click
    On step 4 you will notice the image auto zooms out. This is because letting go of a pan counts as a click on the image; hence it zooms out. If you pan (long click) and bring the cursor to the OS menu bar (outside browser viewport) the image pans and doesn’t auto zoom out. We need to have a way so that a long-click release doesn’t auto-zoom out.

https://wordpress.org/support/topic/panning-image-auto-zooms-out/

@beatricelucaci
Copy link
Author

I also realized when clicking to zoom into an image it always zooms into the image center instead of zooming in to the area that one clicks. Checkout FancyBox’s implementation that allows you to click the plants at the bottom or the cliffs up top:

https://fancyapps.com/#gallery-4

Meow Lightbox also zooms into the area one clicks: https://meowapps.com/meow-lightbox/tutorial/#mwl-16140955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant