We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48123d9 commit 0df84dbCopy full SHA for 0df84db
src/touchhandler/TouchHandler.cpp
@@ -78,6 +78,12 @@ bool TouchHandler::GetNewTouchInfo() {
78
#elif defined(DRIVER_TOUCH_GESTURE)
79
if (info.gesture != Pinetime::Drivers::Cst816S::Gestures::None) {
80
gesture = ConvertGesture(info.gesture);
81
+ // A new variant configuration behaves in a way such that it generates a gesture event at the start of a physical gesture,
82
+ // but does not set the info.touching flag at all. Since gestures are handled separately, special behaviour is only needed
83
+ // for the tap event. For the original P8b, which always sets info.touching = true, this operation is idempotent.
84
+ if (gesture == TouchEvents::Tap) {
85
+ info.touching = true;
86
+ }
87
}
88
#elif defined(DRIVER_TOUCH_DYNAMIC)
89
0 commit comments