Mouse movement causes music playback to rewind unexpectedly
Describe the bug
When I hover my mouse over the interface and move it around, the currently playing music unexpectedly rewinds or goes backward.
To Reproduce
Steps to reproduce the bug:
- Launch
spotify-player - Start playing any song
- Hover the mouse over the application window
- Move the mouse around
- Observe that the playback goes backward (rewinds)
Expected behaviour
The mouse movement should not affect music playback. I expect the song to continue playing normally regardless of mouse interaction.
Log and backtrace
spotify-player-25-05-24-15-01.log
Screenshots
https://github.com/user-attachments/assets/e1fe607b-9e75-40db-85c4-781524be3bf5
Environment
- OS: macOS (Sequoia 15.5)
- Application version: v0.20.5
- Application features: just Notify
Additional context
This bug makes the application difficult to use with a mouse, especially while browsing or navigating the UI. The issue seems related to mouse input being incorrectly interpreted as playback control.
This is very interesting and I don't know why it happened. Maybe you can clone the repo and run the app with additional loggings in this function: https://github.com/aome510/spotify-player/blob/7247aa64958ae8ba43edfe13ef983b18e9d52fd9/spotify_player/src/event/mod.rs#L34-L59
to see what kind of terminal events are listened