From 6075ddbc59b460d9313b3ad583ed40c6a1da440e Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 22 Sep 2023 22:04:51 -0700 Subject: [PATCH] do not drag out of UI bar --- bitplane-thingie.p8 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitplane-thingie.p8 b/bitplane-thingie.p8 index e9e8d07..aefc563 100644 --- a/bitplane-thingie.p8 +++ b/bitplane-thingie.p8 @@ -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)