ntdservices commited on
Commit
8d0720b
·
verified ·
1 Parent(s): 6911fda

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +7 -5
static/index.html CHANGED
@@ -585,11 +585,13 @@ if (it.type === 'video') {
585
  requestAnimationFrame(()=>adjustPopupPosition(el));
586
  });
587
  });
588
- stage.addEventListener('click', e => {
589
- if (state.placingId) return;
590
- const inPopup = e.target.closest('.popup,.pin');
591
- if (!inPopup){ state.items.forEach(x=>x.open=false); renderItems(); }
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
  })();