scrcpy/app
Romain Vimont 3100533e56 Fix "natural scrolling"
> Movements down (scroll backward) generate negative y values and up
> (scroll forward) generate positive y values.

> If direction is SDL_MOUSEWHEEL_FLIPPED the values in x and y will be
> opposite. Multiply by -1 to change them back.

<https://wiki.libsdl.org/SDL_MouseWheelEvent#Remarks>

The x and y values already take the scrolling configuration into
account. Reversing the values when the direction is flipped cancels the
scrolling configuration.

Therefore, just ignore the direction field.

Fixes <https://github.com/Genymobile/scrcpy/issues/966>
2019-12-03 21:10:43 +01:00
..
src Fix "natural scrolling" 2019-12-03 21:10:43 +01:00
tests Move utilities to util/ 2019-11-24 11:53:23 +01:00
meson.build Replace BUILD_DEBUG by NDEBUG 2019-11-27 21:11:52 +01:00
scrcpy.1 Remove deprecated options from help and manpage 2019-11-19 23:05:39 +01:00