Use accumulator for volume scrolling events
This results in much smoother experience on my touchpad.
This commit is contained in:
committed by
Jonas Kvinge
parent
37743606a2
commit
3ecf224d91
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user