Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5007] Android: Debugger does not show all the children of a touchstart event's e.source

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2011-08-31T22:42:59.000+0000
Affected Version/sn/a
Fix Version/sSprint 2011-35
ComponentsAndroid
Labelsandroid, api, debugger, parity
ReporterJon Alter
AssigneeMarshall Culpepper
Created2011-08-15T10:09:16.000+0000
Updated2017-03-07T19:54:15.000+0000

Description

When debugging a touchstart event, you can not see all the children of e.source. Android only shows "e.source.backgroundColor" iOS only shows "e.source.backgroundColor", "e.source.barColor", "e.source.barImage", and "e.source.orientationModes". There should be more children, "e.source.center" for example. As demonstrated in the code. Step 1: debug using the code below (iOS and Android) Step 2: set a breakpoint in the touchstart eventListener Step 3: click the window Step 4: inspect the e.source variable Step 5: notice that "e.source.center.x" is displayed in the console but not in the debugger
var win = Ti.UI.createWindow({
	backgroundColor: 'blue'
});
win.addEventListener('touchstart', function(e){

    Ti.API.info("Touch Started for view: " + e.source);
    Ti.API.info("View Center: " + e.source.center.x + "," + e.source.center.y);
    Ti.API.info("e.globalPoint: " + e.globalPoint);
    Ti.API.info("Start Touch: " + e.globalPoint.x + "," + e.globalPoint.y);
});
win.open();

Associated Helpdesk Ticket

http://appc.me/c/APP-115761

Comments

  1. Marshall Culpepper 2011-08-31

    For now, there isn't a safe way for us to enumerate all of the properties of a proxy because of threading restrictions.
  2. Lee Morris 2017-03-07

    Closing ticket as it will not fix.

JSON Source