Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
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:
closeOnScrollis 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).
verticalDragRangedefault 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.