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:
chrox
2014-05-02 16:50:43 +08:00
parent b7ab1efe8a
commit e1527611c5
6 changed files with 106 additions and 8 deletions

View File

@@ -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