EasyUI Forum
April 30, 2024, 02:40:30 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: bugs about touch events from jquery.parser.js???  (Read 4678 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« 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!!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!