[TIMOB-5534] MobileWeb: Event 'click' and 'dblclick' don't work with Switch.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-10-13T13:37:58.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Misha Vasko |
| Assignee | Chris Barber |
| Created | 2011-05-25T02:26:08.000+0000 |
| Updated | 2011-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');
});
Double click works fine. Event click is fired twice when clicking not a checkbox, but over switch area.
Moving ticket to mobileweb.