Created
March 26, 2018 08:01
-
-
Save japanetfutan/73259b8979db7b4f12c28639af011f0d to your computer and use it in GitHub Desktop.
This file contains 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
/*ロングタップ処理 | |
* elm:タップするエレメント(css selector string) | |
* */ | |
function long_tap(elm){ | |
$(elm).onmousedown; | |
console.log('mouse down...'); | |
setTimeout(function(){ | |
// 800ミリ秒後にマウスを上げる | |
$(elm).onmouseup; | |
console.log('mouse up.'); | |
},800); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment