windows now stop wheel event propagation

no more of the "mouse cursor size change while scrolling" issue

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-07 19:22:25 -03:00
parent c51c71915e
commit 548aa05001

View file

@ -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++) {