You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
sravanb
changed the title
capture, passive modes not working in for svelte:body special element.
capture, passive modes not working for svelte:body special element.
Jan 17, 2020
Describe the bug
once, capture, passive options are not working for the svelte:body element.
Observation
<svelte:window on:keydown|passive={handleKeydown}>
generates
listen(window, "keydown", /*handleKeydown*/ ctx[2], { passive: true }),
while
<svelte:body on:keydown|passive={handleKeydown}/>
generates
document.body.addEventListener("keydown", /*handleKeydown*/ ctx[2]);
instead of using the listen method.
The text was updated successfully, but these errors were encountered: