Allowed to swipe-to-reply only with started initial of touches.

This commit is contained in:
23rd 2024-09-06 11:56:13 +03:00
parent a97d5e80c7
commit 2116e04af5

View file

@ -191,9 +191,7 @@ void SetupSwipeHandler(
};
const auto cancel = released(0)
|| released(1)
|| (touchscreen
? (touches.size() != 1)
: (touches.size() <= 0 || touches.size() > 2))
|| (touches.size() != (touchscreen ? 1 : 2))
|| (type == QEvent::TouchEnd)
|| (type == QEvent::TouchCancel);
if (cancel) {