From c392095ef2208068274b276bfae875254f817a3a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Aug 2023 08:46:36 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/iframe.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index 5c06a3db58..30c574ac84 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -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)