mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
bump crengine: text selection and footnotes fixes and tweaks
Includes: - LvDocView: allow setting custom title/authors/series - elementFromPoint(): fix possible crash when float at end of document - Non-linear fragments: fix generic handling on erm_final - DrawBorder: fix bottom border inset/outset drawing - getSegmentRects(): allow segments to include images - getRangeText(): allow gathering images - Allow standalone image in link to trigger in-page footnotes - ldomDocument::render(): avoid uneeded deserialization on each page turn - lvtinydom: add ldomNode::getAllInnerAttributeValues() - LVFootNote: avoid retrieving internal CompactArray object - In-page footnotes: allows for multiple id= inside them cre.cpp: - rename overrideDocumentProp() to setAltDocumentProp() - isLinkToFootnote(): handle image-only links - text selection functions: add includeImages param
This commit is contained in:
2
base
2
base
Submodule base updated: b6ca09e066...8f5f38d732
@@ -1058,7 +1058,9 @@ function ReaderLink:onGoToPageLink(ges, internal_links_only, max_distance)
|
||||
for _, link in ipairs(links) do
|
||||
-- link.uri may be an empty string with some invalid links: ignore them
|
||||
if link.section or (link.uri and link.uri ~= "") then
|
||||
if link.segments then
|
||||
-- Note: we may get segments empty in some conditions (in which
|
||||
-- case we'll fallback to the 'else' branch and using x/y)
|
||||
if link.segments and #link.segments > 0 then
|
||||
-- With segments, each is a horizontal segment, with start_x < end_x,
|
||||
-- and we should compute the distance from gesture position to
|
||||
-- each segment.
|
||||
|
||||
Reference in New Issue
Block a user