[TIMOB-459] window event properties don't match for different events
|Fix Version/s||Release 1.4.0|
Base UI => Views => Events with Views
There is a red square and two window event listeners (touchstart and singletap)
the x/y for touchstart seems right always
the x/y for singletap seems relative to the red box when you click inside the red box
- Stephen Tramer 2011-04-15
Turns out touchstart was wrong in different ways. All view touch/tap events now return a point relative to the view they're in, or for movement events, the view in which the movement began (which is why the next property is necessary).
There is also a new 'globalPoint' property on touch events which references the point in the global coordinate system, NOT the window's coordinate system.
- Jeff Haynie 2011-04-15
(from [5d538e94fd4224e0992dbffe6bc6f4eea768fe05]) Closes #459: Touch events now return coordinates relative to their (starting) view, added 'globalPoint' property to event dictionary http://github.com/appcelerator/titanium_mobile/commit/5d538e94fd4224e0992dbffe6bc6f4eea768fe05"> http://github.com/appcelerator/titanium_mobile/commit/5d538e94fd422...