From: Mikko Rasa Date: Fri, 25 Nov 2016 21:18:05 +0000 (+0200) Subject: Alter the starting condition for gestures X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=81a662b025809d71d8dc67a2108ad7d54ba7c645;p=libs%2Fgui.git Alter the starting condition for gestures This makes pinch and rotate in particular easier to perform. --- 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