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:
parent
c51c71915e
commit
548aa05001
1 changed files with 25 additions and 3 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue