Skip to content

Commit

Permalink
slider
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Dec 17, 2022
1 parent ec6e778 commit cad8606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/GuiSlider.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class GuiSlider extends GuiImage {
sliderValue = (mouseState.position.x - renderRect.position.x - bmp.width / 2) / renderRect.extent.x;
sliderValue = Util.clamp(sliderValue, 0, 1);

if (this.pressedAction != null)
this.pressedAction(new GuiEvent(this));

if (slidingSound != null)
slidingSound.pause = false;
}
Expand Down

0 comments on commit cad8606

Please sign in to comment.