diff --git a/js/initalize/ui.populate.js b/js/initalize/ui.populate.js index eed8070..ba8b43c 100644 --- a/js/initalize/ui.populate.js +++ b/js/initalize/ui.populate.js @@ -1,6 +1,28 @@ -document.querySelectorAll(".floating-window").forEach((w) => { - makeDraggable(w); -}); +document.querySelectorAll(".floating-window").forEach( + /** + * Runs for each floating window + * + * @param {HTMLDivElement} w + */ + (w) => { + makeDraggable(w); + w.addEventListener( + "wheel", + (e) => { + e.stopPropagation(); + }, + {passive: false} + ); + + w.addEventListener( + "click", + (e) => { + e.stopPropagation(); + }, + {passive: false} + ); + } +); var coll = document.getElementsByClassName("collapsible"); for (var i = 0; i < coll.length; i++) {