Touchenter和touchleave事件支持 [英] Touchenter and touchleave events support
问题描述
我在 mozilla网站上阅读了touchenter和touchleave事件>和 w3网站,但无法找到任何浏览器来支持它或模仿这种效果的任何JavaScript库。
请建议在解决方法时可以做些什么,因为我正在为某些鼠标悬停工作效果,手指进入元素时触发事件,而不是当用户再次提起并触摸元素时触发事件。
感谢:)
我建议您使用
document.elementFromPoint(touch.x,touch.y ); touchmove事件中的
。
I read about touchenter and touchleave events, at mozilla website and w3 website, but can not find any browser to support it or any javascript library that mimics that effect.
Please suggest what could be done as there workaround, as I am working for some mouseover like effect , event gets triggered when fingers enter the element, not when user lifts and touches elements again.
Thanks :)
I suggest that you use
document.elementFromPoint(touch.x, touch.y);
on touchmove event.
这篇关于Touchenter和touchleave事件支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!