diff options
author | Dees Troy <dees_troy@teamw.in> | 2014-04-12 15:09:00 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-04-15 15:26:14 +0200 |
commit | 1eba56f57722b8e37310e84f1ba91c771d2eda41 (patch) | |
tree | 61e2bcacab24c6cbc13c3114d0565d7b0fda8e05 /gui/gui.cpp | |
parent | Only split archives when split_archives is set (diff) | |
download | android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar.gz android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar.bz2 android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar.lz android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar.xz android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.tar.zst android_bootable_recovery-1eba56f57722b8e37310e84f1ba91c771d2eda41.zip |
Diffstat (limited to 'gui/gui.cpp')
-rw-r--r-- | gui/gui.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp index b3d4fe1a0..0164ec393 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -296,16 +296,18 @@ static void * input_thread(void *cookie) { if (!drag) { + if (x != 0 && y != 0) { #ifdef _EVENT_LOGGING - LOGERR("TOUCH_START: %d,%d\n", x, y); + LOGERR("TOUCH_START: %d,%d\n", x, y); #endif - if (PageManager::NotifyTouch(TOUCH_START, x, y) > 0) - state = 1; - drag = 1; - touch_and_hold = 1; - dontwait = 1; - key_repeat = 0; - gettimeofday(&touchStart, NULL); + if (PageManager::NotifyTouch(TOUCH_START, x, y) > 0) + state = 1; + drag = 1; + touch_and_hold = 1; + dontwait = 1; + key_repeat = 0; + gettimeofday(&touchStart, NULL); + } #ifndef TW_NO_SCREEN_TIMEOUT blankTimer.resetTimerAndUnblank(); #endif |