Use accumulator for volume scrolling events

This results in much smoother experience on my touchpad.
This commit is contained in:
Eri the Switch
2024-07-21 13:02:08 +03:00
committed by Jonas Kvinge
parent 37743606a2
commit 3ecf224d91
3 changed files with 26 additions and 10 deletions

View File

@@ -1652,7 +1652,7 @@ void MainWindow::PlaylistDoubleClick(const QModelIndex &idx) {
}
void MainWindow::VolumeWheelEvent(const int delta) {
ui_->volume->setValue(ui_->volume->value() + delta / 30);
ui_->volume->HandleWheel(delta);
}
void MainWindow::ToggleShowHide() {