Skip to content

Commit

Permalink
E-book viewer: Fix scrolling to Table of Contents items that are with…
Browse files Browse the repository at this point in the history
…in 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)
  • Loading branch information
kovidgoyal committed Aug 25, 2023
1 parent 0cd3fd3 commit c392095
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyj/read_book/iframe.pyj
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c392095

Please sign in to comment.