-
Notifications
You must be signed in to change notification settings - Fork 64
Browser inconsistencies in scrollY because deltaMode not used calculate wheelEvent deltas #149
Comments
I think that makes sense, yes - PR would be great. Testing might be the hard part, but at least we can test it manually. |
#154 has been approved, are there any next steps I can help with here? |
Next steps after landing that PR are probably to update the port in emscripten to the commit after that PR landed. |
Hi, https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
|
No reason not to for me, this patch fixes the behavior of scrolling I didn't like which was vertical. Matching this for x sounds like a good idea if horizontal scroll sensitivity also feels bad. |
Part of the solution to emscripten-core/emscripten#6283 appears to be to use
wheelEvent->deltaMode
in Emscripten_HandleWheel to calculate the deltaY.The conversions used in a fix for libraries using library_browser.js instead of library_html5.js are:
Does adding this logic here make sense, should I prep a PR?
The text was updated successfully, but these errors were encountered: