sapper icon indicating copy to clipboard operation
sapper copied to clipboard

Use passive: true for touch events

Open jonasgeiler opened this issue 4 years ago • 1 comments
trafficstars

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.

jonasgeiler avatar Jan 18 '21 21:01 jonasgeiler

Sorry - misunderstood the issue here. Reopened!

antony avatar Feb 15 '21 09:02 antony