Fix next page scrolling for pseudo-full screen layouts

This commit is contained in:
Kovid Goyal 2017-02-23 23:17:53 +05:30
parent 655372f10f
commit 658865e5ed

View File

@ -319,6 +319,8 @@ def next_screen_location():
if cols_left < cols_per_screen:
return -1 # Only blank, dummy pages left
limit = document.body.scrollWidth - window.innerWidth
if limit < col_and_gap:
return -1
if ans > limit:
ans = limit if window.pageXOffset < limit else -1
return ans