[英]How to get active touch events without having a touch event in a browser environment
You can get other touch events from the targetTouches and touches properties of a TouchEvent. 您可以从targetTouches和TouchEvent的touchs属性获取其他触摸事件。 See here: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent . 参见此处: https : //developer.mozilla.org/en-US/docs/Web/API/TouchEvent 。
What I'd like to do is get a list of all touches from anywhere (ie in an event handler that is not for a touch event). 我想要做的是从任何地方获得所有触摸列表(即在事件处理程序,它不是一个触摸事件)。 Is this possible? 这可能吗? How would I do that? 我该怎么做? Bonus points if you can tell me how to get the list of targetTouches active on an element. 如果您能告诉我如何在元素上激活targetTouches列表,将获得加分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.