Disallow swipes while confirmation prompt is displayed

Signed-off-by: George Griffin <george@menomnom.com>
This commit is contained in:
George Griffin 2021-01-12 23:42:58 -05:00 committed by Daniel Thompson
parent f4f7aac7fd
commit ae6e2ff289

View file

@ -114,6 +114,7 @@ class Play2048App():
"""Notify the application of a touchscreen swipe event."""
moved = False
if self._state == 0:
if event[0] == wasp.EventType.UP:
moved = self._shift(1,False)
elif event[0] == wasp.EventType.DOWN: