summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-01-15 14:01:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-01-20 10:48:36 +1000
commit7b0a65d989117d1b071101221ff1b97c1b4d1946 (patch)
tree55b3059d83d56d3da9703f3341caff420a742220 /src/evdev.c
parentd24431a1863c49aa9edcabf535ffa64bfa87053c (diff)
Don't reset the other axis on wheel emulation scroll buildup
The idea was that of a direction lock: as we move vertically we should not build up any horizontal scroll motion even if we move slightly diagonally. The effect was though that the axis would be reset completely as soon as an event from the other axis occured. With the default threshold of 10, if one in ten events was a REL_X, we'd never get a wheel event. Drop this code, it's not needed. By default wheel emulation doesn't do horizontal scrolling, if a config snippet sets XAxisMapping the user wants horizontal scrolling. And since we just add the value anyway, as long as the user does a roughly vertical motion we won't get over the threshold anyway. https://bugs.freedesktop.org/show_bug.cgi?id=93617 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.c')
0 files changed, 0 insertions, 0 deletions