触摸 touches targetTouches changedTouches 区别
来源:互联网 发布:动画软件flash下载 编辑:程序博客网 时间:2024/06/05 22:35
We have the following lists:
- 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
- changedTouches: A list of information for every finger involved in the event (see below) To better understand what might be in these lists, let’s go over some examples quickly
They vary in the following pattern:
- When I put a finger down, all three lists will have the same information. It will be in changedTouches because putting the finger down is what caused the event
- When I put a second finger down, touches will have two items, one for each finger. targetTouches will have two items only if the finger was placed in the same node as the first finger. changedTouches will have the information related to the second finger, because it’s what caused the event
- If I put two fingers down at exactly the same time, it’s possible to have two items in changedTouches, one for each finger
- If I move my fingers, the only list that will change is changedTouches and will contain information related to as many fingers as have moved (at least one).
- When I lift a finger, it will be removed from touches, targetTouches and will appear in changedTouches since it’s what caused the event
- Removing my last finger will leave touches and targetTouches empty, and changedTouches will contain information for the last finger
转自:http://stackoverflow.com/questions/7056026/variation-of-e-touches-e-targettouches-and-e-changedtouches
0 0
- 触摸 touches targetTouches changedTouches 区别
- targetTouches、touches、changedTouches的具体区别
- touches,targetTouches,changedTouches
- touch事件中的touches、targetTouches和changedTouches详解
- touch事件中的touches、targetTouches和changedTouches(详解)
- touch事件中的touches、targetTouches和changedTouches详解
- touches和targetTouches的区别
- ios touches、触摸事件
- cocos2d-x 2.X demo学习笔记 9 ----Touches 触摸事件 以及碰撞检测
- swift 语言获取触摸点坐标 touchesBegan 中的 touches的坐标获取
- Photoshop Finishing Touches
- multi-touches on ios
- UITapGestureRecognizer 和touches事件
- iOS Touches事件传递
- ReactNative 之 Handling Touches
- 多点触摸与单点触摸接口主要区别
- touches began未被调用
- android 触摸事件、点击事件的区别
- OC坑集: block作为函数参数
- Codeforces Round #306 (Div. 2)_B
- 关于ubuntu12.04下firefliy的架设
- Hive介绍
- 说说这些年做的云计算和大数据项目
- 触摸 touches targetTouches changedTouches 区别
- ArcGIS For JavaScript API Dynamically create layer list(动态创建图层列表)
- 6月2日新公司到岗
- [java]——深入理线性表与线性链表
- 用python实现排列
- UNIX环境编程初步认识——编程环境搭建
- 不明白
- Object.prototype.toString.call() 区分对象类型
- mysql中遍历数据库中的所有表数据