EasyUI Forum

General Category => Bug Report => Topic started by: kingor2001 on September 06, 2016, 12:02:56 AM



Title: bugs about touch events from jquery.parser.js???
Post by: kingor2001 on September 06, 2016, 12:02:56 AM
In jquery.parser.js, there are some touch events for supporting mobile devices.
such as
Code:
function onTouchEnd(e){
// if (e.touches.length > 0){return}
if (longTouchTimer){
clearTimeout(longTouchTimer);
}
fire(e, 'mouseup');
if ($.fn.draggable.isDragging || $.fn.resizable.isResizing){
e.preventDefault();
}
}

the sentence ‘ fire(e, 'mouseup'); ’ is necessary?? because of touchstart --> touchmove -> touchend -> click, so click event will happen twice through testing.
I think the  sentence  'fire(e, 'mouseup');' should be removed.

sanks!!!