Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-459] window event properties don't match for different events

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, iphone
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:29:43.000+0000
Updated2011-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

Comments

  1. 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.

  2. 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...

JSON Source