From 1fc809677016912705329d08d712fcb22f03d3cb Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 19 May 2023 10:20:42 -0400 Subject: [PATCH] Stop dragging when a slider changes editability --- scene/gui/slider.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/slider.cpp b/scene/gui/slider.cpp index 121fcf0eb..7271e82a5 100644 --- a/scene/gui/slider.cpp +++ b/scene/gui/slider.cpp @@ -239,6 +239,10 @@ void Slider::set_ticks_on_borders(bool _tob) { } void Slider::set_editable(bool p_editable) { + if (editable != p_editable) { + grab.active = false; + } + editable = p_editable; update(); }