E-book viewer: Fix scrolling to Table of Contents items that are within a single internal file not activating the back button. Fixes #2032974 [E-book viewer: Back and Forward buttons don't seem to work with *.fb2 ebooks](https://bugs.launchpad.net/calibre/+bug/2032974)

This commit is contained in:
Kovid Goyal 2023-08-25 08:46:36 +05:30
parent 0cd3fd362c
commit c392095ef2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -355,6 +355,7 @@ class IframeBoss:
def on_scroll_to_anchor(self, data):
frag = data.frag
if frag:
self.replace_history_on_next_cfi_update = False
self.scroll_to_anchor(frag)
else:
self.to_scroll_fraction(0.0, False)