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/action.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index ee6cbaa..5ebcbf7 100644 --- a/apps/action.c +++ b/apps/action.c @@ -233,6 +233,10 @@ static int get_action_worker(int context, int timeout, * multimedia button presses don't go through the action system */ if (button == BUTTON_NONE || button & (SYS_EVENT|BUTTON_MULTIMEDIA)) return button; + /* the special redraw button should result in a screen refresh */ + if (button == BUTTON_REDRAW) + return ACTION_REDRAW; + /* Don't send any buttons through untill we see the release event */ if (wait_for_release) { -- cgit v1.1