Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +7 -5
static/index.html
CHANGED
|
@@ -585,11 +585,13 @@ if (it.type === 'video') {
|
|
| 585 |
requestAnimationFrame(()=>adjustPopupPosition(el));
|
| 586 |
});
|
| 587 |
});
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
|
|
|
|
|
|
| 593 |
|
| 594 |
loadFromServer();
|
| 595 |
})();
|
|
|
|
| 585 |
requestAnimationFrame(()=>adjustPopupPosition(el));
|
| 586 |
});
|
| 587 |
});
|
| 588 |
+
// Do not close popups when clicking outside.
|
| 589 |
+
// (Placement mode still works via #overlay click handler.)
|
| 590 |
+
stage.addEventListener('click', e => {
|
| 591 |
+
if (state.placingId) return; // placement handled on overlay
|
| 592 |
+
// intentionally do nothing so outside clicks don't close anything
|
| 593 |
+
});
|
| 594 |
+
|
| 595 |
|
| 596 |
loadFromServer();
|
| 597 |
})();
|