mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
Highlight adjusting: avoid start and end crossing each other
This commit is contained in:
@@ -306,6 +306,11 @@ function CreDocument:getScreenBoxesFromPositions(pos0, pos1, get_segments)
|
||||
return line_boxes
|
||||
end
|
||||
|
||||
function CreDocument:compareXPointers(xp1, xp2)
|
||||
-- Returns 1 if XPointers are ordered (if xp2 is after xp1), -1 if not, 0 if same
|
||||
return self._document:compareXPointers(xp1, xp2)
|
||||
end
|
||||
|
||||
function CreDocument:getNextVisibleWordStart(xp)
|
||||
return self._document:getNextVisibleWordStart(xp)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user