Touchenter和touchleave事件支持 [英] Touchenter and touchleave events support

查看:226
本文介绍了Touchenter和touchleave事件支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆