From 1eba56f57722b8e37310e84f1ba91c771d2eda41 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Sat, 12 Apr 2014 13:09:00 +0000 Subject: Fix touch on Sprint HTC One m8 Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001 --- gui/gui.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'gui/gui.cpp') 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 -- cgit v1.2.3