Fix incorrect invocation of scrollBy

This commit is contained in:
Kovid Goyal 2019-09-11 14:23:59 +05:30
parent cb5107472a
commit d04234555d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -140,10 +140,10 @@ def handle_shortcut(sc_name, evt):
goto_boundary(1)
return True
if sc_name is 'left':
window.scrollBy(-15)
window.scrollBy(-15, 0)
return True
if sc_name is 'right':
window.scrollBy(-15)
window.scrollBy(15, 0)
return True
if sc_name is 'start_of_book':
get_boss().send_message('goto_doc_boundary', start=True)