mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
39dede0a58
commit
3d685b46b9
@ -35,14 +35,14 @@ def map_boundaries(cs, vertical, rtl):
|
||||
x_offset = 0
|
||||
y_offset = 0
|
||||
if not vertical:
|
||||
# Horizontal LTR
|
||||
if not rtl:
|
||||
if b.selected_prev:
|
||||
x_offset = b.width
|
||||
# Horizontal RTL
|
||||
else:
|
||||
if rtl:
|
||||
# Horizontal RTL
|
||||
if not b.selected_prev:
|
||||
x_offset = b.width
|
||||
else:
|
||||
# Horizontal LTR
|
||||
if b.selected_prev:
|
||||
x_offset = b.width
|
||||
else:
|
||||
# Vertical:
|
||||
if b.selected_prev:
|
||||
@ -642,7 +642,7 @@ class SelectionBar:
|
||||
self.end_handle.style.display = 'none'
|
||||
self.editor.style.display = 'none'
|
||||
|
||||
if not cs or cs.empty or jstype(cs.drag_mouse_position.x) is 'number' or cs.selection_change_caused_by_search:
|
||||
if not cs or cs.empty or jstype(cs.drag_mouse_position?.x) is 'number' or cs.selection_change_caused_by_search:
|
||||
return self.hide()
|
||||
|
||||
if not cs.start.onscreen and not cs.end.onscreen:
|
||||
|
Loading…
x
Reference in New Issue
Block a user