Created
January 8, 2021 06:52
-
-
Save alimertcakar/5a38b4645ad67fa84deb5954fd4a3386 to your computer and use it in GitHub Desktop.
didMouseMove
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isFastClick(){ | |
let startMousePos = [] | |
let endMousePos = [] | |
$(".glide__slide").click(function(){ | |
//startMousePos = ... | |
}) | |
$(".glide__slide").delay(200).click( function(){ | |
//endMousePos = ... | |
} ) | |
if(startMousePos === endMousePos){ | |
return true; | |
} | |
return false; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment