github dimsemenov/PhotoSwipe v4.1.0

latest releases: v5.4.2, v5.4.1, v5.4.0...
8 years ago

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.

Don't miss a new PhotoSwipe release

NewReleases is sending notifications on new releases.