[TIMOB-13994] iOS: NavigationGroup touch and click events don't work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-10-14T20:20:32.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | triage |
Reporter | Daniel Sefton |
Assignee | Ingo Muschenetz |
Created | 2013-05-26T19:20:18.000+0000 |
Updated | 2017-03-22T18:18:28.000+0000 |
Description
*Problem*
The 'click', 'touchcancel', 'touchend', 'touchmove' and 'touchstart' events don't fire for a NavigationGroup. These are all documented as available:
http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.NavigationGroup
*Note*
The 'dblclick', 'doubletap', 'longpress', 'pinch', 'singletap' and 'swipe' events actually work.
*Steps to reproduce*
1. Run test case in iOS simulator
2. Click and swipe anywhere in the navigation bar
3. Observe that none of the added events are firing
*Test case*
var win1 = Titanium.UI.createWindow();
var win2 = Titanium.UI.createWindow({
backgroundColor : 'white',
title : 'Nav Window'
});
var nav = Titanium.UI.iPhone.createNavigationGroup({
window : win2
});
nav.addEventListener('click', function() {
Ti.API.info("click");
});
nav.addEventListener('touchcancel', function() {
Ti.API.info("touchcancel");
});
nav.addEventListener('touchend', function() {
Ti.API.info("touchend");
});
nav.addEventListener('touchmove', function() {
Ti.API.info("touchmove");
});
nav.addEventListener('touchstart', function() {
Ti.API.info("touchstart");
});
win1.add(nav);
win1.open();
NavigationGroup is deprecated as of 3.1.3, and will be removed in 3.2.0
Closing ticket as the issue will not fix and with reference to the above comments.