Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13994] iOS: NavigationGroup touch and click events don't work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2013-10-14T20:20:32.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelstriage
ReporterDaniel Sefton
AssigneeIngo Muschenetz
Created2013-05-26T19:20:18.000+0000
Updated2017-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();

Comments

  1. Ingo Muschenetz 2013-10-14

    NavigationGroup is deprecated as of 3.1.3, and will be removed in 3.2.0
  2. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source