Update UIItem.js
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled

This commit is contained in:
Nariman Jelveh
2025-09-04 19:38:02 -07:00
parent a68f0edc41
commit bf9be900cc
+1
View File
@@ -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