1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

fix way of scrolling

This commit is contained in:
chren 2016-06-09 18:02:28 +02:00 committed by Pavol Rusnak
parent e8601232e8
commit cd35a592a1
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -65,9 +65,9 @@ def layout_reset_device(m):
render(page)
degrees = yield from Swipe().wait()
if degrees == SWIPE_UP:
page = max(page - 1, 0)
page = max(page + 1, 0)
elif degrees == SWIPE_DOWN:
page = min(page + 1, count)
page = min(page - 1, count)
def animate_arrow():
def func(foreground):