Skip to content

Conversation

@Fraenkiman
Copy link
Collaborator

Fixes #794

Note: PhotoSwipe 4.X.X, currently 4.1.3, is no longer being maintained. To upgrade to 5.X.X, the plugin requires a complete refactoring. https://github.com/dimsemenov/PhotoSwipe/releases?page=2

Changes:

  • Passive support detection (features.passive).
  • framework.bind(...) extended with optional listener options argument.
  • Scroll lock in modal mode (HTML/BODY overflow:hidden, with scrollbar compensation) to prevent background scrolling when wheel listeners are passive.
  • DesktopZoom: Wheel events are bound passively ({passive:true}) if modal mode + browser supports passive listeners.
  • In handleMouseWheel(), preventDefault() is only executed if the listener is not passive.
  • Minified JS removed because it contains obsolete code and is difficult to maintain.

Note: PhotoSwipe 4.X.X, currently 4.1.3, is no longer being maintained. To upgrade to 5.X.X, the plugin requires a complete refactoring.
https://github.com/dimsemenov/PhotoSwipe/releases?page=2

Changes:
- Passive support detection (features.passive).
- framework.bind(...) extended with optional listener options argument.
- Scroll lock in modal mode (HTML/BODY overflow:hidden, with scrollbar compensation) to prevent background scrolling when wheel listeners are passive.

- DesktopZoom: Wheel events are bound passively ({passive:true}) if modal mode + browser supports passive listeners.
- In handleMouseWheel(), preventDefault() is only executed if the listener is not passive.
- Minified JS removed because it contains obsolete code and is difficult to maintain.
@Fraenkiman Fraenkiman merged commit 4407876 into flatpressblog:master Jan 25, 2026
3 checks passed
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.

Google Chrome throws a performance violation

1 participant