mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
Reset scroll delta when no finger is touching
Provides for a more consistent scrolling experience, otherwise delta leftovers may trigger extra events even when the actual scrolling action stays the same. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
@@ -2398,6 +2398,8 @@ HandleScrolling(SynapticsPrivate *priv, struct SynapticsHwState *hw,
|
||||
/* scroll detection */
|
||||
if (finger && priv->finger_state == FS_UNTOUCHED) {
|
||||
stop_coasting(priv);
|
||||
priv->scroll.delta_y = 0;
|
||||
priv->scroll.delta_x = 0;
|
||||
if (para->circular_scrolling) {
|
||||
if ((para->circular_trigger == 0 && edge) ||
|
||||
(para->circular_trigger == 1 && edge & TOP_EDGE) ||
|
||||
|
||||
Reference in New Issue
Block a user