This commit is contained in:
Kovid Goyal 2012-01-26 13:27:30 +05:30
parent ab05b1efbc
commit e172e0cf52

View File

@ -40,7 +40,7 @@ class PagePosition(object):
self.document.mainFrame().evaluateJavaScript('''
function fix_scroll() {
/* 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.
*/
scrollTo(0, window.pageYOffset)