[TIMOB-2920] iOS: CoverFlowView doesn't fire all events listed on API Docs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-05-02T18:05:40.000+0000 |
Affected Version/s | Release 1.6.0, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Dawson Toth |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:32:58.000+0000 |
Updated | 2017-05-02T21:18:48.000+0000 |
Description
Problem
CoverFlowView does not fire all events listed on API docs, which is preventing a customer from listening for the touchmove event.
Expected Behavior
These events should fire, or the ones that do not fire should be removed from the API docs.
Tested On
iPhone Simulator 4.2
BROKEN on Titanium Mobile 1.6.0 (1/19/11 13:13)
Sample Code
Requires KS_nav_ui.png and KS_nav_Views.png, which are created by default in new projects.
// Create a window with a cover flow view.
var win = Ti.UI.createWindow({ title:'CoverFlowView Events', backgroundColor: '#fff' });
var cfv = Ti.UI.createCoverFlowView({
images: [
{ image: 'KS_nav_ui.png', width: 225, height: 225 },
{ image: 'KS_nav_views.png', width: 225, height: 225 }
]
});
win.add(cfv);
win.open();
// Add an event listener to the cover flow view that simply prints "Event Fired: {name of event}"
function listenForEvent(name) {
cfv.addEventListener(name, function() {
Ti.API.info('Event Fired: ' + name);
});
}
// WORKS: These events will properly fire:
listenForEvent('change');
listenForEvent('click');
// BROKEN: These events will NOT fire:
listenForEvent('dblclick');
listenForEvent('doubletap');
listenForEvent('singletap');
listenForEvent('swipe');
listenForEvent('touchcancel');
listenForEvent('touchend');
listenForEvent('touchmove');
listenForEvent('touchstart');
listenForEvent('twofingertap');
Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/67571">http://developer.appcelerator.com/helpdesk/view/67571
Attachments
File | Date | Size |
---|---|---|
coverflowviewevents.rtf | 2011-04-15T03:32:58.000+0000 | 4407 |
Debug Level Log
Attached.
2nd Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/64151">http://developer.appcelerator.com/helpdesk/view/64151
This is the expected behavior.
Tested using 2.0.1GA2 on the iPhone simulator. Most of the events fire, except from the following: listenForEvent('touchcancel'); listenForEvent('touchend'); listenForEvent('touchmove'); listenForEvent('touchstart');
The above is still valid for TiSDK 2.2.0v20120828153312.
Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.