diff --git a/src/gui/GuiSlider.hx b/src/gui/GuiSlider.hx index b40e28d3..44aa1063 100644 --- a/src/gui/GuiSlider.hx +++ b/src/gui/GuiSlider.hx @@ -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; }