在网络应用程序触摸版中, 我正在将鼠标事件转换为触摸事件。 鼠标按下=>触摸开始, 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, e.g. And you want the element to get bigger... for example.
是否有针对这种行为的触摸事件(鼠标悬停表示触摸)?
最佳答案
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.
访问website并阅读文档。
关于javascript - 鼠标悬停的触摸事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31044812/