diff options
author | Frank Dischner <phaedrus961@rockbox.org> | 2006-04-20 07:44:58 +0000 |
---|---|---|
committer | Frank Dischner <phaedrus961@rockbox.org> | 2006-04-20 07:44:58 +0000 |
commit | 54d757b0c50c8a2bf44535d91c0c173d3cfe9436 (patch) | |
tree | eafaee2d38eb261eee081b49ed222561c61c68f3 | |
parent | c7f304e1b9259a9f19f18daa71b6d199539b4a08 (diff) |
Prevent scroll wheel on mini 1g from over-scrolling when scrolling very fast.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9740 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index caf08e131d..3286760aa6 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -272,7 +272,7 @@ void handle_scroll_wheel(int new_scroll, int was_hold, int reverse) } } } - if (wheel_keycode != BUTTON_NONE) + if (wheel_keycode != BUTTON_NONE && queue_empty(&button_queue)) queue_post(&button_queue, wheel_keycode, NULL); prev_scroll = new_scroll; } |