Skip to content

Commit

Permalink
skins-qt: Prevent laggy volume slider when scrolling
Browse files Browse the repository at this point in the history
This makes it also consistent with the GTK Winamp interface
which does not call aud_drct_set_volume_main() directly.

Reported at: https://redmine.audacious-media-player.org/boards/1/topics/2960
Regression from commit 94f9ed0.
  • Loading branch information
radioactiveman committed Apr 6, 2022
1 parent 2bc9b0b commit ab71851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skins-qt/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ bool MainWindow::scroll (QWheelEvent * event)
{
m_scroll_delta_y -= 120 * steps_y;
int volume_delta = aud_get_int ("volume_delta");
aud_drct_set_volume_main (aud_drct_get_volume_main () + steps_y * volume_delta);
mainwin_set_volume_diff (steps_y * volume_delta);
}

return true;
Expand Down

0 comments on commit ab71851

Please sign in to comment.