Case independent

This commit is contained in:
Kovid Goyal 2019-12-28 18:02:18 +05:30
parent 7c143c7207
commit d94c2f21e7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -211,7 +211,8 @@ def cancel_scroll():
def is_scroll_end(pos): def is_scroll_end(pos):
return not (0 <= pos <= document_height() - window.innerHeight) 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: class ScrollAnimator: