Open ghost opened 9 years ago
Any update on this? I seem to have hit the same problem with GLFW3
I think we have flipped the wheel directions already twice because of reports of them being wrong. There are at least the following related reports about this:
perhaps since we share some code across SDL, GLUT and GLFW, it means that fixing one API has regressed another in the past, which has caused the problem. We can't go flipping the wheel around anymore without testing. Do we have existing tests in the interactive
suite that would showcase the problem? Happy to merge fixes for this, but we need to ensure that the breakage and fix can be verified consistently.
The sign for scroll values is wrong on GLFW!
I can at least work around the deltas being flipped by #ifdef EMSCRIPTEN How am I supposed to scale the deltas on Chrome? I need some way to detect which browser this is running on. How to do this?
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.
i know this is an old issue, but I would just like to add that switching between legacy opengl emulation to FULL_ES2 changes scroll behaviour. legacy opengl has flipped, extremely big scroll deltas while ES2 behaves normally. this is with glfw3
The mouse wheel direction is upside down for glfw3 with every browser I tested and glut with chromium. sdl2 appears to be correct.
Test results for scrolling down and up once with code: https://gist.github.com/00v1/0ddc40dec5d395456193#file-mousewheel-txt
Compile with
Relevant function: https://github.com/kripken/emscripten/search?utf8=%E2%9C%93&q=getMouseWheelDelta
To avoid confusion: "Down" is when the upper side of the mouse wheel travels towards you, or when you scroll "down" a website.