Skip to content

Better zoom & some gestures#93

Open
gudzpoz wants to merge 11 commits intonextapps-de:masterfrom
gudzpoz:better-zoom
Open

Better zoom & some gestures#93
gudzpoz wants to merge 11 commits intonextapps-de:masterfrom
gudzpoz:better-zoom

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.
@cadamsdotcom
Copy link

I just included the minified built js from this PR in a project and am happy that it works perfectly. Thanks @gudzpoz!

@ts-thomas any chance of a new version with this in?

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)

2 participants