PDF: align page view with target when following internal link (#8907)

This commit is contained in:
lennonhill
2022-03-16 23:22:56 +01:00
committed by GitHub
parent f8eca5fa03
commit eb34fbb818
2 changed files with 16 additions and 2 deletions

View File

@@ -552,7 +552,7 @@ function ReaderLink:onGotoLink(link, neglect_current_location, allow_footnote_po
if not neglect_current_location then
self:addCurrentLocationToStack()
end
self.ui:handleEvent(Event:new("GotoPage", link.page + 1))
self.ui:handleEvent(Event:new("GotoPage", link.page + 1, link.pos))
return true
end
link_url = link.uri -- external link