Hi Abarka,
Thanks for reaching out.
It’s partially implemented with the current release version, it’s also applied to scroll box and other components used in the builder and theme. But adding passive to all event is not possible especially the elements and events that needs event bubble, and that passive
flag prevent it from working.
And with passive setup, the preventDefault()
also fails, that’s because the browser will halt execution where preventDefault()
is not applicable and throwing warning and error. Please check this https://wanago.io/2018/07/02/understanding-events-bubbling-and-capturing/ as well, it’s related to the errors we’re getting.
This been investigated since last December and there were issues on touch devices. Hence, for now, passive is partially implemented. Based on my understanding, passive is only good for events with a specific purpose, like custom added codes. For events that being used by a majority of elements, it will mostly fail. But we’re still into it.
Thanks!