56klab / qhtml5

Basic Joomla 3.10.x Template
1 stars 1 forks source link

Make {passive: true} by default when EventListenerOptions are supported - Smoooooth Scrool #39

Open simbus82 opened 5 years ago

simbus82 commented 5 years ago

https://github.com/zzarcon/default-passive-events

simbus82 commented 4 years ago

Or this after Jquery

<script>
jQuery.event.special.touchstart = {
  setup: function( _, ns, handle ){
    this.addEventListener("touchstart", handle, { passive: true });
  }
};
</script>