mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
E-book-viewer: Fix TOC links without anchors not scrolling to the top of the current flow
This commit is contained in:
parent
992ceaa856
commit
7208c73480
@ -758,7 +758,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
||||
self.view.scroll_to(frag)
|
||||
else:
|
||||
# Scroll to top
|
||||
self.view.scroll_to('#')
|
||||
self.view.scroll_to(0)
|
||||
if self.view.document.ypos == oldpos:
|
||||
# If we are coming from goto_next_section() call this will
|
||||
# cause another goto next section call with the next toc
|
||||
|
Loading…
x
Reference in New Issue
Block a user