File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 848
848
* If 'a' element has href, slide auto when tapping~
849
849
**/
850
850
Mobilebone . handleTapEvent = function ( event ) {
851
+ /**
851
852
// iscroll(set tap: true) may cause twice tap problem
853
+ // which is none of Mobilebone's business
854
+ // However, you can let code below go to avoid twice tap in Mobilebone
855
+ // 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;
858
+ // 2. keep this code in the form of comment and fixed bug outside
852
859
if (store.timerTap && Date.now() - store.timerTap < 100) {
853
860
event.preventDefault();
854
861
return false;
855
862
}
856
863
store.timerTap = Date.now();
864
+ */
857
865
858
866
// get target and href
859
867
var target = event . target || event . touches [ 0 ] , href = target . href ;
You can’t perform that action at this time.
0 commit comments