mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 05:15:59 +01:00
Prevent selection from being cleared if handle is released after drag far away from end of selection
This commit is contained in:
parent
500ad8948e
commit
8c00352dce
1 changed files with 4 additions and 1 deletions
|
|
@ -527,7 +527,10 @@ def end_handle_drag(self):
|
|||
handle = self.dragging_handle
|
||||
self.dragging_handle = None
|
||||
self.state = WAITING
|
||||
self.update_position(handle)
|
||||
# this is done after the event loop ticks because otherwise if
|
||||
# update_position moves the handle a click event is delivered to the
|
||||
# container, calling container_clicked() and clearing the selection
|
||||
window.setTimeout(self.update_position.bind(None, handle), 0)
|
||||
|
||||
def mouseup_on_container(self, ev):
|
||||
if self.state is DRAGGING:
|
||||
|
|
|
|||
Loading…
Reference in a new issue