From bb0e4cc543e4c7bed6dff3a41d092b6867632535 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 5 Apr 2012 13:00:05 +0200 Subject: touchscreen: Fix kinetic scrolling when the statusbar is off. The scrolling code cannot differentiate between the BUTTON_TOUCHSCREEN post from normal touches and the one posted in the timeout callback. To fix introduce a global special button (BUTTON_REDRAW) that results in the desired redraw. This existed already as a local kludge for android and is now generalized. Change-Id: I6bfa6c66431c48f5042fcd8fce2ea72cd3457f58 --- apps/gui/bitmap/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/bitmap') diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 09a66f3..2f13d8b 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -587,7 +587,7 @@ static int kinetic_callback(struct timeout *tmo) data->velocity = 0; } - queue_post(&button_queue, BUTTON_TOUCHSCREEN, 0); + queue_post(&button_queue, BUTTON_REDRAW, 0); /* stop if the velocity hit or crossed zero */ if (!data->velocity) { -- cgit v1.1