do not drag out of UI bar

This commit is contained in:
kistaro committed 2023-09-22 22:04:51 -07:00
1 parent 372bd9aa58
commit 6075ddbc59
1 file changed
+5
+5
View File
@@ -35,6 +35,11 @@ function _update60()
return
end
-- ignore drag off ui
if was_click and segment == nil then
return
end
-- mouse down
local mouse_x = stat(32)
local mouse_y = stat(33)