Disallow swipes while confirmation prompt is displayed
Signed-off-by: George Griffin <george@menomnom.com>
This commit is contained in:
parent
f4f7aac7fd
commit
ae6e2ff289
1 changed files with 9 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue