mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Clicking outside middle should act like clicking the finish button not the adjust selection button
This commit is contained in:
parent
8de5a4ed86
commit
ebb83d97b8
@ -540,7 +540,10 @@ class CreateAnnotation: # {{{
|
||||
|
||||
def container_clicked(self, ev):
|
||||
ev.stopPropagation(), ev.preventDefault()
|
||||
self.hide_middle()
|
||||
if self.middle.style.display is not 'none':
|
||||
self.hide_middle()
|
||||
self.accept()
|
||||
return
|
||||
if self.state is WAITING_FOR_CLICK:
|
||||
pt = map_to_iframe_coords({'x': ev.clientX, 'y': ev.clientY})
|
||||
self.send_message('position-handles-at-point', x=pt.x, y=pt.y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user