Skip to content

Commit c234e0e

Browse files
author
zhangxinxu
committed
change twice tap bug strategy
change twice tap bug strategy
1 parent cb30c97 commit c234e0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mobilebone.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,9 @@
853853
// which is none of Mobilebone's business
854854
// However, you can let code below go to avoid twice tap in Mobilebone
855855
// but the tap event bind out of Mobilebone also has bug
856-
// so my advice is that
857-
// 1. use Date.now to judge as Mobilebone did;
856+
// so my advice is that:
857+
// 1. use Date.now to judge as Mobilebone did;
858+
// or
858859
// 2. keep this code in the form of comment and fixed bug outside
859860
if (store.timerTap && Date.now() - store.timerTap < 100) {
860861
event.preventDefault();

0 commit comments

Comments
 (0)