提交 55ffd44b 编写于 作者: M m0_37680500

Auto Commit

上级 cb6b8df6
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
let clickCount = 0; let clickCount = 0;
let lastClickTime = 0; let lastClickTime = 0;
window.addEventListener('touchstart', handleTouchStart); window.addEventListener('touchstart', handleTouchStart);
window.addEventListener('click', handleTouchStart);
function handleTouchStart() { function handleTouchStart() {
const currentTime = new Date().getTime(); const currentTime = new Date().getTime();
const timeDiff = currentTime - lastClickTime; const timeDiff = currentTime - lastClickTime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册