Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6414] Android: The globalPoint/x/y properties of Titanium.UI.view's click event does not work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2011-12-01T18:31:22.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterQing Gao
AssigneeMarshall Culpepper
Created2011-12-01T13:21:33.000+0000
Updated2011-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();

Comments

  1. Qing Gao 2011-12-01

    Duplicate with TIMOB-4841

JSON Source