Skip to content

Commit b9f155a

Browse files
committed
squelch warning
1 parent a10e446 commit b9f155a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/lib/components/SplitPane.svelte

+8-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,17 @@
118118
window.addEventListener('touchend', ontouchend, false);
119119
};
120120
121-
node.addEventListener('touchstart', touchdown, false);
121+
node.addEventListener('touchstart', touchdown, {
122+
capture: true,
123+
passive: false
124+
});
122125
123126
return {
124127
destroy() {
125-
node.removeEventListener('touchstart', touchdown, false);
128+
node.removeEventListener('touchstart', touchdown, {
129+
capture: true,
130+
passive: false
131+
});
126132
}
127133
};
128134
}

0 commit comments

Comments
 (0)