From d04234555dc094cce83b11e28e88b0d0d6c7c9bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Sep 2019 14:23:59 +0530 Subject: [PATCH] Fix incorrect invocation of scrollBy --- src/pyj/read_book/flow_mode.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/flow_mode.pyj b/src/pyj/read_book/flow_mode.pyj index 725eb80095..c35ef1f79c 100644 --- a/src/pyj/read_book/flow_mode.pyj +++ b/src/pyj/read_book/flow_mode.pyj @@ -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)