Skip to content

Commit

Permalink
Disable touch horizontal swipe handling when it would conflict with t…
Browse files Browse the repository at this point in the history
…he app-listing, fixes issue #73.
  • Loading branch information
yellows8 committed Oct 30, 2018
1 parent 0580a6b commit d2bb1da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nx_main/nx_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit d2bb1da

Please sign in to comment.