mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 14:12:20 -04:00
Case independent
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user