Mobile end touch trigger sequence of mouse click events

On the mobile side page, click activity, will trigger touch, mouse, click the event, the rules are as follows:

Stage 1: finger on the screen, immediately triggering touchstart.

Stage 2: your finger off the screen, here divided into two kinds:

  If the residence time of the finger on the screen is less than 500ms, will in turn trigger touchend-> mousemove-> mousedown-> mouseup-> click. Time is very short interval between events.

  If the residence time of the finger on the screen is greater than 500ms, will only trigger touchend.

If you had to move your finger on the screen, regardless of how long residence time, will only trigger touchmove-> touchend.

If the micro-channel browser , once the finger stay more than 500ms, will immediately trigger a mousemove, then touchend trigger finger when leaving.

In addition, more than 500ms long-press copy of the selected trigger browser bomb box, css of  touch-callout: none; can be disabled bomb box, but poor compatibility.

Guess you like

Origin www.cnblogs.com/yangshifu/p/12195322.html