Skip to content

Conversation

@amleshwar-p
Copy link

Fixes

  • Prevents user from interacting with the game after winning.
  • Blocks both keyboard and mouse interactions using pointerEvents: "none" and event.preventDefault().
  • Ensures interactions are restored when closing the winning screen.

Test Cases

  • After winning, clicks & keyboard inputs should not work.
  • Closing the winning screen should re-enable interactions.

✅ Tested & working fine!

@vercel
Copy link

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
queens-game-linkedin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 9:38pm

@samimsu samimsu linked an issue Mar 24, 2025 that may be closed by this pull request
@samimsu
Copy link
Owner

samimsu commented Mar 24, 2025

Thank you for the work but this isn't exactly the behavior we want. Sorry for the unclear issue description. We don't want to prevent all interactions entirely, just the board interactions. They should be able to close the winning screen popup or click on the other buttons. Only the board should not be editable unless they reset it.

@samimsu samimsu marked this pull request as draft March 24, 2025 22:21
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.

Lock board after win

2 participants