ColorlibHQ / fancybox-for-wordpress

WordPress plugin that integrates FancyBox into your blog
https://wordpress.org/plugins/fancybox-for-wordpress/
GNU General Public License v3.0
27 stars 21 forks source link

Panning Image Auto Zooms Out #105

Open beatricelucaci opened 1 month ago

beatricelucaci commented 1 month ago

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 commented 1 month ago

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