From d2bb1da2fabe361e6cfa174bb135d6a074ddb522 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 30 Oct 2018 12:22:51 -0400 Subject: [PATCH] Disable touch horizontal swipe handling when it would conflict with the app-listing, fixes issue #73. --- nx_main/nx_touch.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nx_main/nx_touch.c b/nx_main/nx_touch.c index 6abed404..1584033d 100644 --- a/nx_main/nx_touch.c +++ b/nx_main/nx_touch.c @@ -140,10 +140,12 @@ void handleTouch(menu_s* menu) { } } // Horizontal Swipe - else if (abs(y1 - y2) < HORIZONTAL_SWIPE_VERTICAL_PLAY && distance(x1, y1, x2, y2) > HORIZONTAL_SWIPE_MINIMUM_DISTANCE) { - // Swipe left to go into theme-menu - if (x1 - x2 > 0) { - themeMenuStartup(); + else if (y1 < LISTING_START_Y && y2 < LISTING_START_Y) { + if (abs(y1 - y2) < HORIZONTAL_SWIPE_VERTICAL_PLAY && distance(x1, y1, x2, y2) > HORIZONTAL_SWIPE_MINIMUM_DISTANCE) { + // Swipe left to go into theme-menu + if (x1 - x2 > 0) { + themeMenuStartup(); + } } }