[TIMOB-5007] Android: Debugger does not show all the children of a touchstart event's e.source
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2011-08-31T22:42:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-35 |
Components | Android |
Labels | android, api, debugger, parity |
Reporter | Jon Alter |
Assignee | Marshall Culpepper |
Created | 2011-08-15T10:09:16.000+0000 |
Updated | 2017-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();
For now, there isn't a safe way for us to enumerate all of the properties of a proxy because of threading restrictions.
Closing ticket as it will not fix.