Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2920] iOS: CoverFlowView doesn't fire all events listed on API Docs

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-05-02T18:05:40.000+0000
Affected Version/sRelease 1.6.0, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterDawson Toth
AssigneeIngo Muschenetz
Created2011-04-15T03:32:58.000+0000
Updated2017-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

FileDateSize
coverflowviewevents.rtf2011-04-15T03:32:58.000+00004407

Comments

  1. Dawson Toth 2011-04-15

    Debug Level Log

    Attached.

  2. Dawson Toth 2011-04-15

    2nd Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/64151">http://developer.appcelerator.com/helpdesk/view/64151

  3. Reggie Seagraves 2011-07-21

    This is the expected behavior.
  4. Junaid Younus 2012-05-14

    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');
  5. Junaid Younus 2012-08-29

    The above is still valid for TiSDK 2.2.0v20120828153312.
  6. Lee Morris 2017-05-02

    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.

JSON Source