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

Summary: [PATCH] Wayland: invalid direction on mouse wheel
Product: SDL Reporter: Vladimir <s_v_d_2000>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.7   
Hardware: x86_64   
OS: Linux   
Attachments: proposed patch

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