Skip to content

Fix interaction audio playing too often - #487

Merged
janhohenheim merged 1 commit into
TheBevyFlock:mainfrom
Louis-Tarvin:interaction-audio-fix
Feb 28, 2026
Merged

Fix interaction audio playing too often#487
janhohenheim merged 1 commit into
TheBevyFlock:mainfrom
Louis-Tarvin:interaction-audio-fix

Conversation

@Louis-Tarvin

Copy link
Copy Markdown
Contributor

This is a bug I noticed while working on my Bevy Jam entry. The hover sound effect was playing whenever the mouse hovers over any UI element, not just interactive ones. Similarly the click sound would play every time mouse1 is pressed.

Video demonstrating the bug:

2026-02-28.10-14-11.mp4

The fix is to add a check that the entity the event triggered for has the InteractionPalette component

@janhohenheim

Copy link
Copy Markdown
Member

Thx :)

@janhohenheim
janhohenheim merged commit a5f5bd7 into TheBevyFlock:main Feb 28, 2026
6 checks passed
@Louis-Tarvin
Louis-Tarvin deleted the interaction-audio-fix branch February 28, 2026 20:15
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.

2 participants