ReaderHighlight:onHoldPan(): remove abort on empty selection
We may happen to have an empty selection while panning, no reason to abort the selection yet before release. Also add get_segments=true to remaining calls to getScreenBoxesFromPositions() that we forgot to update to use it.
This commit is contained in:
1 parent
2326bb5d4c
commit
e535b2b6e6
2 files changed
+2
-8
No files matched your search
@@ -688,7 +688,7 @@ function CreDocument:getTextFromPositions(pos0, pos1, do_not_draw_selection)
|
||||
drawSelection, drawSegmentedSelection)
|
||||
logger.dbg("CreDocument: get text range", text_range)
|
||||
if text_range then
|
||||
local line_boxes = self:getScreenBoxesFromPositions(text_range.pos0, text_range.pos1)
|
||||
local line_boxes = self:getScreenBoxesFromPositions(text_range.pos0, text_range.pos1, true)
|
||||
return {
|
||||
text = text_range.text,
|
||||
pos0 = text_range.pos0,
|
||||
|
||||
Reference in new issue
Block a user