spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

Mouse movement causes music playback to rewind unexpectedly

Open Danialsamadi opened this issue 7 months ago • 1 comments

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:

  1. Launch spotify-player
  2. Start playing any song
  3. Hover the mouse over the application window
  4. Move the mouse around
  5. 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.

Danialsamadi avatar May 24 '25 21:05 Danialsamadi

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

aome510 avatar Jun 22 '25 19:06 aome510