Disable touch horizontal swipe handling when it would conflict with the app-listing, fixes issue #73.
This commit is contained in:
parent
0580a6bcdc
commit
d2bb1da2fa
@ -140,12 +140,14 @@ 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) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
touchInfo.gestureInProgress = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user