Closed matthewcobb closed 6 months ago
Tried to implement it, but it has negative side effects that disturb the player’s functionality. Have to take a deeper look into that.
Done. Built into the newly released v2.0!
As this has implications on the player’s behavior on mobile devices that may not be liked by everyone, it comes as an option. You can choose which way to go. Activate passive listeners by adding the attribute data-passive
(no values) to the player div
.
Google Lighthouse is showing a warning that is related to the
touchstart
event listeners.It recommends adding
passive: true
to any touchstart event listeners:document.addEventListener('touchstart', onTouchStart, {passive: true})
More info here: https://developer.chrome.com/docs/lighthouse/best-practices/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=lr