mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
166aa99b27
commit
91f37ca343
@ -648,7 +648,8 @@ def handle_gesture(ev, view):
|
||||
return True
|
||||
th = ev.gesture(Qt.TapAndHoldGesture)
|
||||
if th and th.state() in (Qt.GestureStarted, Qt.GestureUpdated, Qt.GestureFinished):
|
||||
send_click(view, th.position(), button=Qt.RightButton)
|
||||
if th.state() == Qt.GestureFinished:
|
||||
send_click(view, th.position(), button=Qt.RightButton)
|
||||
ev.accept(Qt.TapAndHoldGesture)
|
||||
return True
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user