Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passive event listener not added to touchmove #5438

Closed
TheComputerM opened this issue Sep 22, 2020 · 2 comments · Fixed by #5442
Closed

Passive event listener not added to touchmove #5438

TheComputerM opened this issue Sep 22, 2020 · 2 comments · Fixed by #5442

Comments

@TheComputerM
Copy link

REPL
Open Devtools:

VM77:45 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

As you can see the touchmove event is not marked as passive.

@Conduitry
Copy link
Member

Related: #2068

@tanhauhau
Copy link
Member

@TheComputerM if you want it to be passive,

<h1 on:touchstart|passive={touchmove}>Hello {name}!</h1>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants