mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
...
This commit is contained in:
parent
ab05b1efbc
commit
e172e0cf52
@ -40,7 +40,7 @@ class PagePosition(object):
|
|||||||
self.document.mainFrame().evaluateJavaScript('''
|
self.document.mainFrame().evaluateJavaScript('''
|
||||||
function fix_scroll() {
|
function fix_scroll() {
|
||||||
/* cfi.scroll_to() uses scrollIntoView() which can result
|
/* cfi.scroll_to() uses scrollIntoView() which can result
|
||||||
in scrolling to scrolling along the x-axis. So we
|
in scrolling along the x-axis. So we
|
||||||
explicitly scroll to x=0.
|
explicitly scroll to x=0.
|
||||||
*/
|
*/
|
||||||
scrollTo(0, window.pageYOffset)
|
scrollTo(0, window.pageYOffset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user