最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Difference between touches and targetTouches - Stack Overflow

programmeradmin4浏览0评论

I am trying to learn mobile web app development and going through ; .html

I wanted to understand the difference between touches and targetTouches... Not in a literal sense (like I do understand targetTouches is specific to an element)

I wanted to understand more from a syntax perspective... like when we say targetTouches inside any function, what exactly are we referring to... Any example would be really great..

I am trying to learn mobile web app development and going through ; http://www.html5rocks.com/en/mobile/touch.html

I wanted to understand the difference between touches and targetTouches... Not in a literal sense (like I do understand targetTouches is specific to an element)

I wanted to understand more from a syntax perspective... like when we say targetTouches inside any function, what exactly are we referring to... Any example would be really great..

Share Improve this question edited Oct 9, 2020 at 10:19 Brian Tompsett - 汤莱恩 5,88372 gold badges61 silver badges133 bronze badges asked Jul 20, 2011 at 10:26 copenndthagencopenndthagen 50.7k105 gold badges313 silver badges486 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 21

touches: A list of information for every finger currently touching the screen.

targetTouches: Like touches, but is filtered to only the information for finger touches that started out within the same node.

More info here

发布评论

评论列表(0)

  1. 暂无评论