1if(typeof jQuery !== 'undefined') { 2 jQuery.event.special.touchstart = { 3 setup: function( _, ns, handle ) { 4 this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") }); 5 } 6 }; 7 jQuery.event.special.touchmove = { 8 setup: function( _, ns, handle ) { 9 this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") }); 10 } 11 }; 12 jQuery.event.special.wheel = { 13 setup: function( _, ns, handle ){ 14 this.addEventListener("wheel", handle, { passive: true }); 15 } 16 }; 17 jQuery.event.special.mousewheel = { 18 setup: function( _, ns, handle ){ 19 this.addEventListener("mousewheel", handle, { passive: true }); 20 } 21 }; 22} 23 24if(typeof BX !== 'undefined') { 25 function agci_addPassive(){ 26 var baseBind = BX.bind; 27 28 BX.bind = function(t, e, h, o){ 29 if(e == 'touchstart' || e == 'touchmove' || e == 'wheel' || e == 'mousewheel'){ 30 // console.log(e); 31 if (!o) 32 o = {}; 33 34 o['passive'] = true; 35 } 36 37 baseBind.call(this, t, e, h, o); 38 }; 39 } 40 41 agci_addPassive(); 42}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.