mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix right or shift-clicking to extend selection not shrinking selection when the click is inside the selection. Fixes #1926793 [E-book viewer: right-clicking inside the selection does nothing](https://bugs.launchpad.net/calibre/+bug/1926793)
This commit is contained in:
parent
333f42945a
commit
1095dc4dc6
@ -206,7 +206,8 @@ def move_end_of_selection(pos, start):
|
|||||||
elif r.compareBoundaryPoints(window.Range.END_TO_END, q) <= 0:
|
elif r.compareBoundaryPoints(window.Range.END_TO_END, q) <= 0:
|
||||||
start = False
|
start = False
|
||||||
else:
|
else:
|
||||||
return
|
# point is inside the selection
|
||||||
|
start = False
|
||||||
if start:
|
if start:
|
||||||
if r.startContainer is not p.offsetNode or r.startOffset is not p.offset:
|
if r.startContainer is not p.offsetNode or r.startOffset is not p.offset:
|
||||||
r.setStart(p.offsetNode, p.offset)
|
r.setStart(p.offsetNode, p.offset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user