File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ bool TouchHandler::ProcessTouchInfo(Drivers::Cst816S::TouchInfos info) {
63
63
#elif defined(DRIVER_TOUCH_GESTURE)
64
64
if (info.gesture != Pinetime::Drivers::Cst816S::Gestures::None) {
65
65
gesture = ConvertGesture (info.gesture );
66
+ // A new variant configuration behaves in a way such that it generates a gesture event at the start of a physical gesture,
67
+ // but does not set the info.touching flag at all. Since gestures are handled separately, special behaviour is only needed
68
+ // for the tap event. For the original P8b, which always sets info.touching = true, this operation is idempotent.
69
+ if (gesture == TouchEvents::Tap) {
70
+ info.touching = true ;
71
+ }
66
72
}
67
73
#elif defined(DRIVER_TOUCH_DYNAMIC)
68
74
if (info.gesture != Pinetime::Drivers::Cst816S::Gestures::None) {
You can’t perform that action at this time.
0 commit comments