Answers for "how to add make touchstart passive in jquery "3.4.0""

0

how to add make touchstart passive in jquery "3.4.0"

jQuery.event.special.touchstart = {
            setup: function (_, ns, handle) {
                this.addEventListener('touchstart', handle, { passive: !ns.includes('noPreventDefault') });
            }
        };
        jQuery.event.special.touchmove = {
            setup: function (_, ns, handle) {
                this.addEventListener('touchmove', handle, { passive: !ns.includes('noPreventDefault') });
            }
        };
Posted by: Guest on January-02-2021

Code answers related to "how to add make touchstart passive in jquery "3.4.0""

Code answers related to "Javascript"

Browse Popular Code Answers by Language