Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix closing when thumbnail bounds are unknown #1563

Closed
wants to merge 1 commit into from

Conversation

jefferyto
Copy link

@jefferyto jefferyto commented Sep 29, 2018

Currently, when getThumbBoundsFn is false and the user closes the gallery, the zoom level and image position is reset. This causes a visible flash of the initial image if:

  • The image is zoomed in
  • The user drags down or pinches to close

This changes the closing animation so that only the template is faded out, keeping the image in the correct place / zoom level.

Currently, when getThumbBoundsFn is false and the user closes the
gallery, the zoom level and image position is reset. This causes a
visible flash of the initial image if:
* The image is zoomed in
* The user drags down or pinches to close

This changes the closing animation so that only the template is faded
out, keeping the image in the correct place / zoom level.
arnowelzel added a commit to arnowelzel/PhotoSwipe that referenced this pull request Sep 30, 2018
@dimsemenov
Copy link
Owner

Fixed by v5.0.

@dimsemenov dimsemenov closed this Apr 29, 2021
@jefferyto jefferyto deleted the fix-no-bounds-hide branch July 26, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants