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
onWheel delta doesn't match event.delta? #96
Comments
@mpolichette hm this looks like a bug, thanks for reporting this, I’ll investigate this tomorrow. |
Thanks @dbismut, you're a great maintainer! 👍 |
@mpolichette thanks, that's good to hear! |
@dbismut I'm pretty new to this stuff, so sorry if this is not the place to comment this. But I think after this change been applying since 6.0.8, the scroll movement has getting some "jiggle" behavior, because that's kind of difficult to explain, I was testing this example from drcmd (https://codesandbox.io/embed/react-three-fiber-suspense-gltf-loader-l900i ). If you change the version from 6.0.7 to any number above, the behavior change, and is very clear if you click on a seat becuase now the click move the model. |
@abepuentes Damn you're right. I though I could solve this in a minor release, but I'll release a cleaner |
@dbismut 6.0.11 is working fine, I test it in my website and is ok. You are doing a great job. |
Hey, I'm using
"react-use-gesture": "^6.0.7"
and I'm getting a weird behavior withonWheel
and a stepped mouse, e.g. one which physically click between steps.I first noticed, I was not getting any movement if i did a single step of the wheel. Investigating, I defined the following handler:
useGesture({ onWheel: console.log })
and got the following event.As you can see, the
event.deltaY
has a value, but the delta fromuseGesture
is 0. This isn't an issue if I scroll more quickly and get multiple events.I've noticed this also effects my macbook trackpad w/ very small movements, but its harder to trigger a single event, so its less noticeable.
Any thoughts on why the delta doesn't reflect the events or ideas for how I could recognize these small movements?
The text was updated successfully, but these errors were encountered: