1. Comparison events between PC and Mobile devices
| Event | on PC | on Mobile |
|---|---|---|
click![]() |
onclick, onmousedown | ontouchstart |
drag![]() |
onmousemove | ontouchmove |
out![]() |
onmouseup | ontouchend |
| Event | on PC | on Mobile |
|---|---|---|
click![]() |
onclick, onmousedown | ontouchstart |
drag![]() |
onmousemove | ontouchmove |
out![]() |
onmouseup | ontouchend |
There are only two differences.
First, event names ( as I noted on a table above ), and "event.clientX" on PC is changed to "event.touches[0].clientY".