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

third axis: deltaZ / zoom #175

Open
xiel opened this issue May 21, 2020 · 3 comments
Open

third axis: deltaZ / zoom #175

xiel opened this issue May 21, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@xiel
Copy link
Owner

xiel commented May 21, 2020

  • normalize pinch to deltaZ
@xiel xiel added the enhancement New feature or request label May 21, 2020
@lawderp
Copy link

lawderp commented Nov 29, 2020

hey @xiel, was this ever implemented / does this package support z axis stuff in general?

e.g. doing const wheelGestures = WheelGestures({ preventWheelAction: "z" }) doesn't seem to prevent pinching to zoom, which I would think it would? Changing to y prevents this behavior, but then of course this also prevents vertical scrolling.

Documentation indicates that z is supported, but this issue suggests otherwise so thought I'd check. Thanks and nice work btw!

@xiel
Copy link
Owner Author

xiel commented Nov 29, 2020

Hi @lawderp,

currently the z axis is only supported for mice that emit deltaZ. The pinch gesture is not supported yet.
I'll try to have a look into this during the next weeks.

Cheers

@lawderp
Copy link

lawderp commented Nov 29, 2020

ah ok no worries. If you get it working do let me know!

(more on my use case: I just want to do trackpad pinch to zoom, except using a custom zoom function. So I basically want to "prevent default" while also capturing the pinch "delta". Surprisingly, there doesn't seem to be a good library for this!)

also: love this interactive demo 😍
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants