Reduce bottom bound on dragging UIItems (#1485)

This commit is contained in:
Hariz
2025-09-05 20:17:22 -04:00
committed by GitHub
parent ba2609be28
commit 4a0de7b2fc
+1 -1
View File
@@ -288,7 +288,7 @@ function UIItem(options){
const minLeft = -50;
const maxLeft = window.desktop_width - 50;
const minTop = window.toolbar_height;
const maxTop = window.desktop_height + window.toolbar_height - 50;
const maxTop = window.desktop_height + window.toolbar_height;
// Apply constraints to ui.position
ui.position.left = Math.max(minLeft, Math.min(maxLeft, ui.position.left));