什么时候 View 被触摸,位置 可以通过使用 Synthetic Touch Events 。根据 Documentation ,
View
Synthetic Touch Events
locationX - The X position of the touch, relative to the element. pageX - The X position of the touch, relative to the root element.
在触摸页面的页面上方。
所以,哪个更好 locationX 或 pageX
locationX
pageX