And mouse wheel events

Mouse events are the most commonly used Web development a class of events, because the mouse is the main pointing device.

  • click --- user clicks the left mouse button or press the Enter key trigger
  • dbclick --- user double-clicks the left mouse button trigger.
  • mousedown --- the user presses any mouse button is triggered.
  • --- MouseEnter the mouse cursor from the first element to the elements outside the range triggered. This event is not bubbling .
  • --- MouseLeave upper element to move the cursor beyond the range of elements trigger. Not bubbling .
  • mousemove --- cursor constantly moving internal elements triggered.
  • --- mouseOver mouse pointer is an external element, then the user first moves the trigger boundaries within another element.
  • mouseOut --- triggered when the user moves the cursor to the top of one element from another element.   
  • mouseup --- in the user releases the mouse button is triggered.

  Notice: All of the above events and in addition mouseenter mouseleave are bubbling.

  Important: Only on the same elements have triggered mouseup and mousedown events, will trigger a click event. Similarly, only two click trigger event on the same element, will trigger dbclick event.

  Generating process dbclick events is as follows:

  1. mousedown
  2. mouseup
  3. click
  4. mousedown
  5. mouseup
  6. click
  7. dbclick

Guess you like

Origin www.cnblogs.com/nxmxl/p/11910866.html