mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
show a box indicator when tapping on a link
only for PDF/DJVU docs for now since there is no easy way to get link box from crengine
This commit is contained in:
@@ -167,6 +167,7 @@ Given rectangle in original page return rectangle on the screen
|
||||
]]--
|
||||
function ReaderView:pageToScreenTransform(page, rect)
|
||||
if self.ui.document.info.has_pages then
|
||||
rect = self.ui.document:nativeToPageRectTransform(page, rect)
|
||||
if self.page_scroll then
|
||||
return self:getScrollPageRect(page, rect)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user