Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-10-13T13:37:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMisha Vasko
AssigneeChris Barber
Created2011-05-25T02:26:08.000+0000
Updated2011-10-13T13:37:58.000+0000

Description

Events 'click' and 'dblclick' not works with switch object.
win = Ti.UI.currentWindow;

var swit = Ti.UI.createSwitch({
	top: 10,
	left: 10,
	height: 100,
	width: 100,
});

win.add(swit);

swit.addEventListener('click', function(){
	alert('click works!');
});

swit.addEventListener('dblclick', function(){
	alert('dblclick works');
});

Comments

  1. Misha Vasko 2011-06-20

    Double click works fine. Event click is fired twice when clicking not a checkbox, but over switch area.
  2. Chris Barber 2011-10-13

    Moving ticket to mobileweb.

JSON Source