ozone/wayland: Fix horizontal scroll direction
wl_pointer's horizontal offsets were being handled differently from vertical ones. This causes the effect observed in crbug.com/986258. This CL fixes it as well as updates the associated test expectations. Test: Covered by ozone_unitests. Also, testable manually as follows: - Open any webpage with horizontal scroll bar; - Scroll it, using either a touchpad or mouse; - In Sway compositor, the following command can be used to enable "natural scroll", as mentioned in the bug report: $ swaymsg input "<touchpad id here>" natural_scroll enabled - whereas touchpad id is retrieved through 'swaymsg -t get_inputs' command. R=msisov@igalia.com Bug: 986258 Change-Id: I0bb835aae47ff0bcb99b67b39d32738b0088a80e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2579652Reviewed-by:Antonio Gomes <tonikitoo@igalia.com> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/master@{#835392}
Showing
Please register or sign in to comment