-
Notifications
You must be signed in to change notification settings - Fork 310
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
Exception thrown when holding ctrl and simultaneously scroll the wheel on the mouse fast enough #551
Comments
Same with Firefox with the exception |
I'm not able to reproduce... Are both your machines running windows? Are you using a trackpad? @LSafer @tokarchyn |
@dbismut I had it on windows using mouse |
I think it got something to do with tracking pointerIds My setup was: Next.js + useSpring + useGuesture + mouse and a touch screen When I tracked touches count on That's all I got since I got tiered and used |
Tracking pointer ids can be a complex problem. Would you mind sharing a sandbox so I can have a look? Also are you using a Microsoft Surface by any chance? |
@dbismut Ok, it might take a while though and no I use |
Sorry I couldn't reproduce it. I haven't committed the code until I changed it to a working solution The code was using |
Umm, actually, the error occurs on this demo page: https://codesandbox.io/s/github/pmndrs/use-gesture/tree/main/demo/src/sandboxes/card-zoom Click |
@LSafer thank you very much I'll have to get some hardware to reproduce this. Just so you know, pointer ids bug exists because I wanted the lib to support multi hands gestures, so two hands being able to interact pinching two different objects at the same time. This requires some logic that's a bit hard to master cross-devices... |
@dbismut you're welcome. The error must be something that takes a while like caching pointer ids or not forgetting I tried everything to find a clear way of reproducing the error Also, I think you should make multi hands gesture an opt-in feature (regardless of the error) |
I have lots of users who get this error on Windows! Any chance we can suppress this error just by null checking where it reads clientX without having to reproduce the issue? @dbismut |
I guess we could indeed... |
@baptisteArno I've just tried Browserstack and the problem doesn't show when using my MagicMouse. I'll try fixing this with my eyes closed. |
Hi @baptisteArno and everyone. I've attempted a blind fix here #596 |
Can it be pulled from npm repo? |
This should work: https://stackoverflow.com/questions/33181297/npm-install-from-github-pull-request So If this doesn't work, you can also try adding this to your package.json:
It uses the build from codesandbox. |
Unfortunately, I don't have a way to check if it fixes the issue, as I can only "test" this in production, and I'd rather not to… @lindabeslist Can you try it out? |
@dbismut The error is gone 🙂I can easily reproduce an error on all previous versions, but not on |
Great! Thanks for testing. I'll release this asap. |
Indeed, the error is gone. Thank you for fixing :) |
Released 10.2.26! |
Describe the bug
Exception thrown when holding
ctrl
and simultaneously scroll the wheel on the mouse fast enough.Sandbox or Video
Card-zoom sandbox from the documentation: https://codesandbox.io/s/github/pmndrs/use-gesture/tree/main/demo/src/sandboxes/card-zoom
Information:
Checklist:
touch-action: none
to the draggable element.The text was updated successfully, but these errors were encountered: