-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
mousewheel direction reversed in glut (chrome) #2864
Comments
Apologies for the regression. However, there have been so many changes to this code path and the wheel direction has been reversed already three times, so in order to maintain stability, I don't want to change any code with respect to this, unless it is accompanied by a test case that can be compiled both natively and in the test suite that will expose the problem and prove the correct behavior after fixed. Would you be able to implement a minimal glut test app that shows the problem and add it to the test_interactive.py suite that one can verify the breakage and the fix? |
Ok, will do. I THINK the fix is to just re-add the negation of wheelDelta (which you Thanks, On Fri, Oct 10, 2014 at 7:27 AM, juj notifications@github.com wrote:
|
The negation was added due to user bug report that mouse wheel was reversed in SDL by another even earlier commit. If the issue is GLUT only, then flipping the sign in the GLUT code will probably fix this, but let's add a test first so that the behavior is readily verifiable by anyone. |
Actually it looks like tests/glut_wheelevents already tests this, but the If I change that test slightly to correctly report failure when the events This is NOT a glut issue, this is a mousewheel event issue in I suspect glfw is also broken, though I couldn't get figure out how to Ryan On Sat, Oct 11, 2014 at 9:40 AM, juj notifications@github.com wrote:
|
Direction still reversed for: |
It's not only glut problem, I have check the same behavior in glfw3(em-1.29). |
This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
I think this is the result of
2ef851b
I'm now getting button=4 for "up" and button=3 for "down". Looks like that change reversed the sign in getMouseWheelDelta but kept the usage the same in library_glut onMouseWheel, so it makes sense that it reversed which button is reported.
The text was updated successfully, but these errors were encountered: