mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Browser reader: Fix clicking links with no anchors not always scrolling going to the top of the linked file
This commit is contained in:
parent
cb576ef61a
commit
9ad2ff8581
@ -353,6 +353,8 @@ class IframeBoss:
|
||||
elem = c[0]
|
||||
if elem:
|
||||
scroll_to_elem(elem)
|
||||
else:
|
||||
window.scrollTo(0, 0)
|
||||
|
||||
def find(self, data, from_load):
|
||||
if data.searched_in_spine:
|
||||
|
Loading…
x
Reference in New Issue
Block a user