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

Better zoom & some gestures #93

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

gudzpoz
Copy link

@gudzpoz gudzpoz commented May 17, 2023

This PR introduces the following features:

  • Mouse wheel zooming now zooms where the cursor is located.
  • Pinch to zoom.
  • Swipe up to close the gallery.

Well, since this PR contains several distinct features, ideally it should be separated into several PRs. I can do that if it is considered necessary.

resolves #76, partially resolves #80 and maybe #44

gudzpoz added 11 commits May 17, 2023 10:56
Sliding up triggers a click event, resulting in repeated dispatch calls,
sometimes right after closing the gallery, messing up things.

Using a node as media messes up the styles of the original node.
Preserve original styling of the original node fragment.

Do not zoom in when users scroll horizontally.

Add demonstration of scroll/pan conflicts with some special inner nodes.
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.

Better zoom support for vertical images (w/ height > width) Touch events (zoom in/out)
1 participant