fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.29k stars 1.79k forks source link

Zoom bug in Safari version 14 and below #2663

Closed MarkerB closed 1 year ago

MarkerB commented 1 year ago

When zooming fancybox v4 more than ~2.4X in Safari desktop or mobile versions 14 or lower, the zoom level starts jumping in and out, and the image scoots off to the left. The lightbox viewing area is then empty. Zooming back out enough will restore the image. In Safari 13, the zoom limit before the bug occurs is only 1.0X.

Steps to reproduce the behavior:

  1. Open Safari Version 14 or lower.
  2. Navigate to https://fancyapps.com/playground/4uV (this is the stock fancybox playground, except with a maxScale of 10)
  3. Click on a thumbnail.
  4. Zoom to 10x instantly by clicking on the image, or use the scroll wheel to zoom incrementally past 2.4X.
  5. The image zoom level stutters, and then the image flies off the left side of the viewing pane, leaving the viewing pane empty.

Expected behavior:

In all other browsers, and Safari versions > 14, the zoom to 10x works as expected.

Enviroment:

MarkerB commented 1 year ago

If the developer doesn't have access to any of the 2+ year old browser versions for reproducing this bug, I will gladly provide them access to a BrowserStacks account to virtually run any Safari version.

MarkerB commented 1 year ago

These are being addressed in the upcoming fancybox v5.