[TIMOB-11277] iOS6: hide() and show () do not get fired if they are tapped for more than four times in second.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-10-08T21:45:30.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Amuktha Akkinepally |
Assignee | Ingo Muschenetz |
Created | 2012-10-05T18:10:34.000+0000 |
Updated | 2014-06-19T12:43:44.000+0000 |
Description
When the show and hide buttons are tapped in rapid succession the events do not get fired. It cannot hide child view immediately after tap on parent view.
Steps to Reproduce:
1. run the code below 2. click btn1 - btn3 will disappear 3. click btn2 - btn3 will reappear 4. in rapid succession, click btn1, click the open window space between btn1 and btn2, then click btn2 - btn3 will disappear, but will not reappear
var tabGroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({
title:'Tab 1',
layout: 'vertical'
});
var tab1 = Ti.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var btn1 = Ti.UI.createButton({
top: 20,
width: 200,
height: 50,
title: 'Hide'
});
btn1.addEventListener('click', function(e) {
btn3.hide ();
});
var btn2 = Ti.UI.createButton({
top: 20,
width: 200,
height: 50,
title: 'Show'
});
btn2.addEventListener('click', function(e) {
btn3.show ();
});
var btn3 = Ti.UI.createButton({
top: 20,
width: 200,
height: 50,
title: 'Button'
});
win1.add (btn1);
win1.add (btn2);
win1.add (btn3);
var win2 = Ti.UI.createWindow({
title:'Tab 2'
});
var tab2 = Ti.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 2',
window:win2
});
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
Marking as invalid. Clicking multiple times on a Titanium UI element fires the double tap event instead of the "click" event. Changing the sample to event "doubletap" or "touchend" is more accurate.