From cad8606057d03c8b191d66a77d86ab27d2382f12 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 18 Dec 2022 01:29:17 +0530 Subject: [PATCH] slider --- src/gui/GuiSlider.hx | 3 +++ 1 file changed, 3 insertions(+) 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; }