Disable touch horizontal swipe handling when it would conflict with the app-listing, fixes issue #73.

This commit is contained in:
yellows8 2018-10-30 12:22:51 -04:00
parent 0580a6bcdc
commit d2bb1da2fa

View File

@ -140,10 +140,12 @@ void handleTouch(menu_s* menu) {
} }
} }
// Horizontal Swipe // Horizontal Swipe
else if (abs(y1 - y2) < HORIZONTAL_SWIPE_VERTICAL_PLAY && distance(x1, y1, x2, y2) > HORIZONTAL_SWIPE_MINIMUM_DISTANCE) { else if (y1 < LISTING_START_Y && y2 < LISTING_START_Y) {
// Swipe left to go into theme-menu if (abs(y1 - y2) < HORIZONTAL_SWIPE_VERTICAL_PLAY && distance(x1, y1, x2, y2) > HORIZONTAL_SWIPE_MINIMUM_DISTANCE) {
if (x1 - x2 > 0) { // Swipe left to go into theme-menu
themeMenuStartup(); if (x1 - x2 > 0) {
themeMenuStartup();
}
} }
} }