[TIMOB-6414] Android: The globalPoint/x/y properties of Titanium.UI.view's click event does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2011-12-01T18:31:22.000+0000 |
Affected Version/s | Release 1.7.5, Release 1.8.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Qing Gao |
Assignee | Marshall Culpepper |
Created | 2011-12-01T13:21:33.000+0000 |
Updated | 2011-12-01T18:31:49.000+0000 |
Description
The globalPoint/x/y properties of Titanium.UI.view's click event do not work.
Repro Steps
Create a project to run the following code.Expected Result
Running the project with iPhone Simulator will see the x/y coordinates being printed out.Actual Result
Nothing comes out in the console when running the same project on Android emulator.
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var win = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var view = Ti.UI.createView();
view.addEventListener('click', function(e){
//Ti.API.info('globalPoint.x='+e.globalPoint.x);
//Ti.API.info('globalPoint.y='+e.globalPoint.y);
Ti.API.info('x='+e.x);
Ti.API.info('y='+e.y);
})
win.add(view);
win.open();
Duplicate with TIMOB-4841