fix: retrieve toc when page or height of document is changed
This commit is contained in:
1 parent
3a65a9ddde
commit
4c6420abba
2 files changed
+15
-4
No files matched your search
@@ -179,6 +179,7 @@ function ReaderRolling:onUpdatePos()
|
||||
self:gotoXPointer(self.ui.document:getXPointer())
|
||||
self.old_doc_height = new_height
|
||||
self.old_page = new_page
|
||||
self.ui:handleEvent(Event:new("UpdateToc"))
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user