]> asedeno.scripts.mit.edu Git - linux.git/commit
Input: ALPS - handle 0-pressure 1F events
authorBen Gamari <ben@smart-cactus.org>
Tue, 4 Oct 2016 18:40:44 +0000 (11:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 4 Oct 2016 18:46:51 +0000 (11:46 -0700)
commita831776323e7c532ef9c88d0d62512ae15d78415
tree08b81fcc217d0a8cacb721feda78d85c738aa810
parent4777ac220c430173e297237b896932ed5fd8aaf3
Input: ALPS - handle 0-pressure 1F events

While a button is held SS5 hardware will give us single-finger packets
with x, y, and pressure equal to zero. This causes annoying jumps in
pointer position if a touch is released while the button is held. Handle
this by claiming zero contacts to ensure that no position events are
provided to the user.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Ben Gamari <ben@smart-cactus.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c