do not drag out of UI bar

This commit is contained in:
Kistaro Windrider 2023-09-22 22:04:51 -07:00
parent 372bd9aa58
commit 6075ddbc59
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

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)