mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix spurious detection of hold gestures
This commit is contained in:
parent
4800dbb2fc
commit
8f4c5aee59
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user