From ab995f345387b306735ecfbda84dbc019f1053bb Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 2 Oct 2024 14:14:23 +0300 Subject: Raygui hotfix. --- examples/resources/lib/raygui.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/resources/lib/raygui.lua b/examples/resources/lib/raygui.lua index 066bd37..dd65512 100644 --- a/examples/resources/lib/raygui.lua +++ b/examples/resources/lib/raygui.lua @@ -1819,6 +1819,8 @@ end function Raygui:draw() if self.locked then RL.GuiLock() + else + RL.GuiUnlock() end if self.disabled then RL.GuiDisable() @@ -1826,7 +1828,7 @@ function Raygui:draw() RL.GuiEnable() end -- Drawing is done from back to front so we want to lock the ui on begin. - if not self.textEdit then + if not self.textEdit and not RL.GuiGetSliderDragging() then RL.GuiLock() end -- cgit v1.2.3