[TIMOB-459] window event properties don't match for different events
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:53:07.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | ios, iphone |
| Reporter | Nolan Wright |
| Assignee | Jeff Haynie |
| Created | 2011-04-15T02:29:43.000+0000 |
| Updated | 2011-04-17T01:53:07.000+0000 |
Description
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
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.
(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...