Skip to content

Block card input while paused on Android/Kivy - #583

Merged
joeraz merged 2 commits into
shlomif:masterfrom
bwrightkc:fix/android-pause-blocks-input-upstream-v2
Jul 17, 2026
Merged

Block card input while paused on Android/Kivy#583
joeraz merged 2 commits into
shlomif:masterfrom
bwrightkc:fix/android-pause-blocks-input-upstream-v2

Conversation

@bwrightkc

@bwrightkc bwrightkc commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Pausing on Android didn't stop the game — cards could still be dragged, so moves kept counting while the timer stayed frozen (could finish with 0.00 time).

The pause overlay in Kivy is just an image on top; it never blocked touches. Cards now check game.pause and ignore touches while paused, matching desktop.

Also dropped a couple of stale comments in tkcanvas.py that seemed to imply that the graphical overlay was stopping play, maybe it was at some point, but not now...

Fixes #569

Pause froze the elapsed-time counter but never stopped touch input,
so cards could still be dragged and moves counted while paused,
letting a run finish with a 0.00 time. LImageItem now checks
game.pause before handling touch down/up.
@bwrightkc
bwrightkc marked this pull request as ready for review July 17, 2026 19:00
@joeraz

joeraz commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

No issues here. Merging, thanks!

@joeraz
joeraz merged commit 4f03762 into shlomif:master Jul 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can play whilst paused on Android

2 participants