HID: magicmouse: properly account for scroll movement in state
authorChase Douglas <chase.douglas@canonical.com>
Mon, 21 Jun 2010 01:32:29 +0000 (21:32 -0400)
committerJiri Kosina <jkosina@suse.cz>
Thu, 24 Jun 2010 08:48:03 +0000 (10:48 +0200)
commit8d93efb27ab8927ffc7a357f1b2d10039de50ed4
tree1ffc1eaff7f116243d8a84ae6944b4fb985b8616
parent9846f350ef4d4108c1154acfc125fe8d8630ef84
HID: magicmouse: properly account for scroll movement in state

Before this change, sequential scroll events would take a variable
amount of movement due to incorrect accounting. This change ensures all
scroll movements require a deterministic touch movement for an action to
occur.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Michael Poole <mdpoole@troilus.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c