Issue
When a view contains a 'twofingertap' event listener, this is the only listener ever triggered, regardless of other touch event listeners.
Testing
var win = Ti.UI.createWindow();
var view = Ti.UI.createView({
backgroundColor:'red',
width:200,
height:200
});
var events = ['click', 'dblclick', 'doubletap', 'longpress',
'pinch', 'singletap', 'swipe', 'touchcancel', 'touchend', 'touchmove',
'touchstart', 'twofingertap'];
for (var index in events)
{
var event = events[index];
view.addEventListener(event, function() {
Ti.API.info('Event: '+event);
});
}
win.add(view);
win.open();
1. Try and perform all events on the view
*PASS:* Events fire correctly
*FAIL:* Only
twofingertap
fires
Appears to be, instead, a reference vs. value issue. Checking with somebody more experienced with JS interpreter behavior when it comes to configuration loops like this before marking invalid or changing description.
This is a good demonstration of a JS antipattern, it turns out.
Closing ticket as invalid.