File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ bool TouchHandler::GetNewTouchInfo() {
2626 }
2727
2828 if (info.gesture != Pinetime::Drivers::Cst816S::Gestures::None) {
29- if (slideReleased ) {
29+ if (gestureReleased ) {
3030 if (info.gesture == Pinetime::Drivers::Cst816S::Gestures::SlideDown ||
3131 info.gesture == Pinetime::Drivers::Cst816S::Gestures::SlideLeft ||
3232 info.gesture == Pinetime::Drivers::Cst816S::Gestures::SlideUp ||
33- info.gesture == Pinetime::Drivers::Cst816S::Gestures::SlideRight) {
33+ info.gesture == Pinetime::Drivers::Cst816S::Gestures::SlideRight ||
34+ info.gesture == Pinetime::Drivers::Cst816S::Gestures::LongPress) {
3435 if (info.touching ) {
3536 gesture = info.gesture ;
36- slideReleased = false ;
37+ gestureReleased = false ;
3738 }
3839 } else {
3940 gesture = info.gesture ;
@@ -42,7 +43,7 @@ bool TouchHandler::GetNewTouchInfo() {
4243 }
4344
4445 if (!info.touching ) {
45- slideReleased = true ;
46+ gestureReleased = true ;
4647 }
4748
4849 return true ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace Pinetime {
3939 Pinetime::Components::LittleVgl& lvgl;
4040 Pinetime::Drivers::Cst816S::Gestures gesture;
4141 bool isCancelled = false ;
42- bool slideReleased = true ;
42+ bool gestureReleased = true ;
4343 };
4444 }
4545}
You can’t perform that action at this time.
0 commit comments