mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
0cd3fd362c
commit
c392095ef2
@ -355,6 +355,7 @@ class IframeBoss:
|
|||||||
def on_scroll_to_anchor(self, data):
|
def on_scroll_to_anchor(self, data):
|
||||||
frag = data.frag
|
frag = data.frag
|
||||||
if frag:
|
if frag:
|
||||||
|
self.replace_history_on_next_cfi_update = False
|
||||||
self.scroll_to_anchor(frag)
|
self.scroll_to_anchor(frag)
|
||||||
else:
|
else:
|
||||||
self.to_scroll_fraction(0.0, False)
|
self.to_scroll_fraction(0.0, False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user