From 81a662b025809d71d8dc67a2108ad7d54ba7c645 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 25 Nov 2016 23:18:05 +0200 Subject: [PATCH] Alter the starting condition for gestures This makes pinch and rotate in particular easier to perform. --- source/input/gesturedetector.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/input/gesturedetector.cpp b/source/input/gesturedetector.cpp index 62ac3f0..97e3d56 100644 --- a/source/input/gesturedetector.cpp +++ b/source/input/gesturedetector.cpp @@ -150,11 +150,12 @@ void GestureDetector::start_gesture() if(!p.down) return; - /* At least one point needs to have moved more than the threshold to start - the gesture. */ - bool threshold_exceeded = false; - for(unsigned i=0; (i