Skip to content

Commit

Permalink
volume: Fix hesitating motion in popover on scroll wheel events
Browse files Browse the repository at this point in the history
Scrolling on the volume widget changes the volume but it was hesitating
in certain cases after a few events one direction and then dialing back.
Fix this by queueing redraw frames while the animation is running.
  • Loading branch information
soreau committed Jan 12, 2025
1 parent f49f719 commit e4b209f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/panel/widgets/volume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ WayfireVolumeScale::WayfireVolumeScale()
value_changed.block();
this->set_value(this->current_volume);
value_changed.unblock();
this->queue_draw();
}
}, true);

Expand Down

0 comments on commit e4b209f

Please sign in to comment.