mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Case independent
This commit is contained in:
parent
7c143c7207
commit
d94c2f21e7
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user