From d94c2f21e7cf86ec1e96fa08b7c878b40f4ae05b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 28 Dec 2019 18:02:18 +0530 Subject: [PATCH] Case independent --- src/pyj/read_book/flow_mode.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/flow_mode.pyj b/src/pyj/read_book/flow_mode.pyj index 01d133664c..fc5b6d4bba 100644 --- a/src/pyj/read_book/flow_mode.pyj +++ b/src/pyj/read_book/flow_mode.pyj @@ -211,7 +211,8 @@ def cancel_scroll(): def is_scroll_end(pos): return not (0 <= pos <= document_height() - window.innerHeight) -DIRECTION = {'Up': -1, 'Down': 1} + +DIRECTION = {'Up': -1, 'up': -1, 'Down': 1, 'down': 1, 'UP': -1, 'DOWN': 1} class ScrollAnimator: