1
0
Fork 0

Hid widgets when dragging and reenable when done

master
stweedo 2023-06-16 11:43:44 -05:00
parent 0d9805d4ed
commit 6fe81e3279
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,8 @@
Object.keys(isDragging).forEach((boxKey) => {
isDragging[boxKey] = false;
});
require("widget_utils").show();
require("widget_utils").swipeOn();
}
if (Object.values(wasDragging).some(Boolean) || !boxTouched) {
draw(boxes);
@ -181,6 +183,7 @@
dragHandler = function(e) {
Object.keys(boxes).forEach((boxKey) => {
if (isDragging[boxKey]) {
require("widget_utils").hide();
let boxItem = boxes[boxKey];
calcBoxSize(boxItem);
let newX = boxPos[boxKey].x + e.dx;