Closed thomasballinger closed 3 years ago
I think that makes sense, yes - PR would be great.
Testing might be the hard part, but at least we can test it manually.
https://github.com/emscripten-ports/SDL2/pull/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,
I wonder the reasons of the existing solution's asymmetry - why divide deltaY
but not both (deltaX
, deltaY
) ?
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
WheelEvent.deltaMode Returns an unsigned long representing the unit of the delta* values' scroll amount.
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 https://github.com/emscripten-core/emscripten/issues/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?