Touch event for mouseover

In a web application touch-version, I'm converting mouse events to touch events. mousedown=>touchstart, mouseup=>touchend...

I also want to convert mouseover event.

Touch mouseover ? it is ansurd, the touchpad doesnt detect your finger in the air !

Not really, if you swipe your finger over an element, eg And you want the element to get bigger... for example.

Is there a touch event for such a behaviour (mouseover for touch) ?


Currently, jQuery UI user interface library does not support the use of touch events in their widgets and interactions. This means that the slick UI you designed and tested in your desktop browser will fail on most, if not all, touch-enabled mobile devices, becuase jQuery UI listens to mouse events—mouseover, mousemove and mouseout—not touch events—touchstart, touchmove and touchend.

That's where jQuery UI Touch Punch comes in. Touch Punch works by using simulated events to map touch events to their mouse event analogs. Simply include the script on your page and your touch events will be turned into their corresponding mouse events to which jQuery UI will respond as expected.

Visit the website and read the documentation.


Virtual mouse event by JQuery mobile is quite welldone. https://api.jquerymobile.com/vmouseover/


你应该尝试触发('click')on('mouseover',function(){});

链接地址: http://www.djcxy.com/p/95590.html

上一篇: Pointermove不会因触摸IE而触发

下一篇: 触摸鼠标悬停的事件