JS/JQuery onmouseover event on iPad


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
Good day!
Faced with the problem:
in the desktop browsers onmouseover calls the function I need, the problem to implement the same for ipad and android devices.
Thanks in advance!
upd: I'm using the drag'n'drop mechanism and I need when you drag one object on another to switch their places, while the element in which I move the object it should work out the event showing on the translucent div element.
by | 9 views

5 Answers

0 like 0 dislike
onmouseover not working, but hover somehow but it works: jsfiddle.net/6QkLq/ — checked on the iPhone
by
0 like 0 dislike
Think of anything else, alas, but nowadays the screens of phones do not allow you to catch holding your finger over the item without touching the screen.
As an option, do the similar actions on long press.
by
0 like 0 dislike
There seems to be the dragover event, try it. And in General — is not it easier to catch the location of mouse (finger) and see whether it's within element
by
0 like 0 dislike
by
0 like 0 dislike
ontouchstart, ontouchmove, ontouchend. I'd sold through them. Full replacement is not heard, but is easily written from the ontouchmove handler. Good coordinates and yourself and the goal you know.
by

Related questions

0 like 0 dislike
1 answer
asked Mar 24, 2019 by taliban
0 like 0 dislike
7 answers
asked Mar 22, 2019 by flom
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 7, 2019 by denisbookreev
110,608 questions
257,186 answers
0 comments
28,014 users