Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5552] MobileWeb: Event 'click' and 'dblclick' don't work with Window.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-25T02:00:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-05-24T05:40:48.000+0000
Updated2017-03-09T19:47:41.000+0000

Description

Events 'click' and 'dblclick' not works with window object. Nothing happens in a window when clicking on it.
win = Ti.UI.currentWindow;

win.addEventListener('click', function(){
	win.backgroundColor = 'red';
	alert('click works!');
})

win.addEventListener('dblclick', function(){
	win.backgroundColor = 'green';
	alert('dblclick works!');
})

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source