misc cleanups, mostly whitespace

This commit is contained in:
Kovid Goyal 2020-08-13 19:58:26 +05:30
parent 6141113d5b
commit 2076c92ab5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 8 deletions

View File

@ -250,10 +250,7 @@ def layout(is_single_page):
# scroll viewport needs to know if we're in vertical mode,
# since that will cause scrolling to happen left and right
scroll_viewport.initialize_on_layout(body_style)
document.documentElement.style.overflow = 'hidden'
if scroll_viewport.vertical_writing_mode:
document.documentElement.style.overflow = 'visible'
document.documentElement.style.overflow = 'visible' if scroll_viewport.vertical_writing_mode else 'hidden'
def auto_scroll_resume():
scroll_animator.wait = False