Improved rendering performance of images that are larger than PhotoSwipe viewport, which leads to more smooth swipe transition and decreased memory usage (up to 50% depending on image and viewport size), but affects zooming behaviour.
Composited layer for the image is now created only after it's zoomed. Watch screencast that demonstrates how it works now.
This change does not affect public API, everything should work as before.
Also some small things that were changed:
closeOnScroll
is now blocked if animations are running or gesture is performed.- Horizontal dragging direction is forced if previous swipe transition wasn't finished.
- Reduced duration of transition that finishes zoom gesture (300 to 200ms).
verticalDragRange
default value increased from 0.6 to 0.75.- Reduced default maximum spread and double tap zoom level from 2x and 1.5x to 1.33x.