How I disable/remove the touchstart event from videojs?

I want to disable touchstart event in videojs using preventDefault.

player.on('touchstart', (e) => { e.preventDefault() });

but I get this error:

Unable to preventDefault inside passive event listener invocation.

I don't have the handler to use removeEventListener either.

What I can do to remove this event?

1 answer