sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7k stars 434 forks source link

Use passive: true for touch events #1699

Open jonasgeiler opened 3 years ago

jonasgeiler commented 3 years ago

Is your feature request related to a problem? Please describe. The problem is pretty much described here

Describe the solution you'd like Add a third parameter to the addEventListener('touchstart', ...) here in the runtime

How important is this feature to you? It's a little performance improvement, and sometimes make the page run smoother. Not sure if it actually helps in Sapper applications, so it's not that important to me.

Additional context To support older browsers, you should use feature detection, which is a bit complicated. It's also described in the first link.

antony commented 3 years ago

Sorry - misunderstood the issue here. Reopened!