From 36ce14a8261f0a4b0d0969454884eb4c2967933a Mon Sep 17 00:00:00 2001 From: NiskashY Date: Wed, 28 Jun 2023 02:32:27 +0300 Subject: [PATCH] Fix disabled slider highlighting (cherry picked from commit 4394936392802fb48fd6ccddc385bedd67aa9b31) --- scene/gui/slider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/slider.cpp b/scene/gui/slider.cpp index e2fb7efb19b..398f637e856 100644 --- a/scene/gui/slider.cpp +++ b/scene/gui/slider.cpp @@ -256,7 +256,7 @@ void Slider::_notification(int p_what) { Ref style = theme_cache.slider_style; Ref tick = theme_cache.tick_icon; - bool highlighted = mouse_inside || has_focus(); + bool highlighted = editable && (mouse_inside || has_focus()); Ref grabber; if (editable) { if (highlighted) {