Skip to content

Commit

Permalink
Fix Volume Slider disappearing for one frame when you press Play
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 8, 2024
1 parent 4a3b137 commit ad3f7c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1199,12 +1199,13 @@ static bool toolbar(Track *track, Rectangle boundary)
start_rendering_track(track);
}

interacted = interacted || volume_slider((CLITERAL(Rectangle) {
bool volume_slider_interacted = volume_slider((CLITERAL(Rectangle) {
boundary.x + HUD_BUTTON_SIZE*2,
boundary.y,
HUD_BUTTON_SIZE,
HUD_BUTTON_SIZE,
}));
interacted = interacted || volume_slider_interacted;

state = fullscreen_button((CLITERAL(Rectangle) {
boundary.x + boundary.width - HUD_BUTTON_SIZE,
Expand Down

0 comments on commit ad3f7c3

Please sign in to comment.