Fix image lightbox click handling and module image size rendering

This commit is contained in:
Jürgen Mummert
2026-03-04 17:26:46 +01:00
parent 8848fdcbc3
commit e3f842f2d3
2 changed files with 30 additions and 3 deletions

View File

@@ -57,6 +57,10 @@
let offsetY = 0;
note.addEventListener('pointerdown', (event) => {
if (event.target instanceof Element && event.target.closest('a, button, input, select, textarea, label')) {
return;
}
dragging = true;
pointerId = event.pointerId;
note.setPointerCapture(pointerId);