Skip to content

Allow game toast messages to be dismissed with a swipe or drag #5612

Description

@MRGhust

Is your feature request related to a problem? Please describe.
Transient in-game error and status messages cannot currently be dismissed manually. This is especially disruptive on mobile, where a longer message can cover nearly half of the screen for several seconds, obscuring the game and controls while the player has no way to remove it early.

Describe the solution you'd like
Allow players to swipe or drag transient game toast messages off-screen to dismiss them immediately. The behavior should apply consistently to all messages displayed through the shared toast layer, including error and success/status messages.

A short drag that does not pass the dismissal threshold should return the toast to its original position, while the existing automatic timeout should continue to work as it does today. The interaction should support touch input on mobile and pointer input on desktop.

Describe alternatives you've considered
A close button or tap-to-dismiss behavior could also work, but a close button would take up limited space on mobile and tapping may cause accidental dismissals. A swipe/drag gesture keeps the toast visually simple while giving players control over when it disappears.

Additional context
This improvement is most important on mobile because the available viewport is much smaller and game messages can temporarily block a significant portion of the play area.

Assignment

  • I'd like to be assigned to this issue and work on it myself

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

approvedApproved for a PR, if you assigned to the issue.

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions