Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

Does not use passive listeners to improve scrolling performance

//add this code in the last of u re code
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") });
    }
};
jQuery.event.special.wheel = {
    setup: function( _, ns, handle ){
        this.addEventListener("wheel", handle, { passive: true });
    }
};
jQuery.event.special.mousewheel = {
    setup: function( _, ns, handle ){
        this.addEventListener("mousewheel", handle, { passive: true });
    }
};
Comment

PREVIOUS NEXT
Code Example
Typescript :: ts remove first 0 number from string 
Typescript :: regex replace certain string 
Typescript :: terminal prompts disabled 
Typescript :: angular ngfor conditional pipe 
Typescript :: foreach typescript 
Typescript :: script to see what tkinter fonts installed on system 
Typescript :: ngclass stackoverflow 
Typescript :: Could not find method kapt() for arguments [androidx.room:room-compiler:2.3.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 
Typescript :: do pineapples eat you 
Typescript :: exclude folder from typescript compiler tsconfig.json 
Typescript :: typescript key options from array values 
Typescript :: how to send data between components in react with redirect 
Typescript :: typescript check undefined 
Typescript :: ts await foreach loop 
Typescript :: ion modal dismiss 
Typescript :: nginx ERR_TOO_MANY_REDIRECTS when i try redirect to https 
Typescript :: how to check if an entry exists in a model django 
Typescript :: recharts bar chart 
Typescript :: typescript default public or private 
Typescript :: brackets equation latex 
Typescript :: make an interface iterator typescript 
Typescript :: type usestate typescript 
Typescript :: typescript quickly pdf 
Typescript :: mat input formatter tel 
Typescript :: disable sonar rule in code 
Typescript :: git check if its up to date 
Typescript :: How to specify output directory in TypeScript? 
Typescript :: how to get value from observable 
Typescript :: how to add an element to a Typescript array 
Typescript :: check if column exists in dataframe python 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =