Fix spurious detection of hold gestures

This commit is contained in:
Kovid Goyal 2014-02-13 11:34:14 +05:30
parent 4800dbb2fc
commit 8f4c5aee59

View File

@ -179,6 +179,9 @@ class State(QObject):
if pinch_dir is not None:
self.pinched.emit(pinch_dir)
if not self.hold_started:
return
if TapAndHold in self.possible_gestures:
tp = next(self.touch_points.itervalues())
self.tap_hold_finished.emit(tp)