mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -527,7 +527,10 @@ class SelectionBar:
|
||||
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…
x
Reference in New Issue
Block a user