From bf9be900ccf42783932eb69b6b0e01ea529e1836 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 4 Sep 2025 19:38:02 -0700 Subject: [PATCH] Update UIItem.js --- src/gui/src/UI/UIItem.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/src/UI/UIItem.js b/src/gui/src/UI/UIItem.js index 352313bac..9b872ae76 100644 --- a/src/gui/src/UI/UIItem.js +++ b/src/gui/src/UI/UIItem.js @@ -291,6 +291,7 @@ function UIItem(options){ const maxTop = window.desktop_height + window.toolbar_height - 50; // Apply constraints to ui.position + ui.position.left = Math.max(minLeft, Math.min(maxLeft, ui.position.left)); ui.position.top = Math.max(minTop, Math.min(maxTop, ui.position.top)); // Only show drag helpers if the item has been moved more than 5px