We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4012 - [PATCH] Wayland: invalid direction on mouse wheel
Summary: [PATCH] Wayland: invalid direction on mouse wheel
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.7
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-27 13:38 UTC by Vladimir
Modified: 2018-01-03 18:36 UTC (History)
0 users

See Also:


Attachments
proposed patch (832 bytes, patch)
2017-12-27 13:38 UTC, Vladimir
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2017-12-27 13:38:44 UTC
Created attachment 3119 [details]
proposed patch

Invalid direction on mouse wheel

Patch tested in Centos 7 + Weston
Comment 1 Sam Lantinga 2018-01-03 18:05:42 UTC
Does this patch give negative values for scrolling up and left and positive values for scrolling right and down?
Comment 2 Sam Lantinga 2018-01-03 18:34:54 UTC
Sorry, the y should be flipped in my description:
    Sint32 x;           /**< The amount scrolled horizontally, positive to the right and negative to the left */
    Sint32 y;           /**< The amount scrolled vertically, positive away from the user and negative toward the user */

I'll assume that you corrected the values to match the above and commit your patch.
Comment 3 Sam Lantinga 2018-01-03 18:36:16 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/ea7c4b476853