0

Analog of onmousedown is ontouchstart

Analog of onmousemove - ontouchmove

onmouseup - ontouchend

onmouseout - ?

UPDATE1 I mean that when you touch an element, and without releasing allot finger away from it, is the event that I want to catch

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
kandi
  • 1,098
  • 2
  • 12
  • 24

3 Answers3

0

There is no touch equivalent for onmouseout.

jsalonen
  • 29,593
  • 15
  • 91
  • 109
0

Both onMouseOver and onMouseOut are related to hover. There is no analogy to hover on touch devices so the general answer is to avoid hover.

Preferred Alternative to OnMouseOver for touch

Community
  • 1
  • 1
Doug Morrow
  • 1,306
  • 1
  • 10
  • 18
0

After the Update1 I suggest listening to ontouchend which will be triggered when the touch will leave the bound object. But still there is no exact analog. Do you have a particular case where you need to know if the touch exited?

adrenalin
  • 1,656
  • 1
  • 15
  • 25