I have both mouseover and touchstart event attached to an element. I want the mouse hover to occur only when the user is using mouse, and touchstart to occur only when user taps on it on a touch screen. In IE, I use pointerdown
event, but this captures both of them. There is also MSGestureStart
that can detect touchstart, but mouseover still fires. How can I differentiate mousehover
and tocuhstart
in IE?
Asked
Active
Viewed 289 times
1

CookieEater
- 2,237
- 3
- 29
- 54
-
possible duplicate of [Detecting that the browser has no mouse and is touch-only](http://stackoverflow.com/questions/7838680/detecting-that-the-browser-has-no-mouse-and-is-touch-only) – brandonscript Jan 17 '14 at 08:52
1 Answers
0
This is a good question. In i have find some idea here:
Probably if you use has suggested some libraries or plugin you can find a good solution but i don't know if you can and want.

Community
- 1
- 1

phemt.latd
- 1,775
- 21
- 33
-
1Generally better to flag the question as a duplicate rather than answer with a link to the duplicate question. – brandonscript Jan 17 '14 at 08:52
-
I'm sorry, i don't understand this feature...the next time i will use it – phemt.latd Jan 17 '14 at 09:10
-