发表于 & 归档在 HTML5.

Qunee makes some integration to Mouse, Key and TouchEvent. In order to facilitate the operation, it retains some original events and expands some other events. KeyEvent
  •  onkeydown – keydown event
MouseEvent or TouchEvent There are some integration made to the original MouseEvent or TouchEvent, some of which are unique to desktop browsers, like #onmousewheel; while some others of which are unique to mobile devices, like #onpinch.
  •  onclick – click event
  •  ondblclick – dblclick event
  •  onstart – mousedown event or touchdown event
  •  onrelease – mouseup event or touchup event
  •  startdrag – dragstart event
  •  ondrag – dragmove event
  •  enddrag – dragend event
  •  onlongpress – lonpress event, mousedown or touchdown for a certain time
  •  onmousewheel – mouse wheel, unique to desktop browsers
  •  startpinch – pinchstart event, unique to mobile devices
  •  onpinch – pinchmove event, unique to mobile devices
  •  endpinch – pinchend event, unique to mobile devices
  •  onmousemove – mousemove event
New Types of Events Added by V2.5
  •  onmousedown – mousedown event
  •  onmouseup – mouseup event
  •  onstart2 – rbuttondown
  •  onrelease2 – rbuttonup
  •  startdrag2 – rbutton dragstart event
  •  ondrag2 – rbutton dragmove event
  •  enddrag2 – rbutton dragend event
  •  onevent – all events
  •  accept – used for judging the response event
Interaction Events Expansion The interaction events listed above are not all original MouseEvent or KeyEvent, but after encapsulation or improvement. For example, original mouseclick event makes no distinction between click and dblclick and may be triggered during the mousemove event. Graph components avoid all these problems. Click and dblclick event – click, dblclick Dblclick event will not trigger click event. System will cancel the event if mouseclick slide exceeds a certain distance, which is also applicable to mobile devices. Longpree event – longpress Mouseclick or touchdown lasts a certain time will both trigger the longpress event. Example: