Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default [FIXED-22] doubletap event on Dataview isn't called (0.82)

    [FIXED-22] doubletap event on Dataview isn't called (0.82)


    The onDoubleTap seems to be called, but the event isn't fired. Itemtap fires perfectly.

    Line 191 in Dataview.js.

    Code:
        // private
        onTap : function(e) {
            var item = e.getTarget(this.itemSelector, this.getTemplateTarget());
            if (item) {
                var index = this.indexOf(item);
                if (this.onItemTap(item, index, e) !== false) {
                    e.stopEvent();
                    this.fireEvent("itemtap", this, index, item, e);
                }
            }
            else {
                if(this.fireEvent("containertap", this, e) !== false) {
                    this.onContainerTap(e);
                }
            }
        },
    
        // private
        onContainerTap : function(e) {
            this.clearSelections();
        },
    
        // private
        onDoubleTap : function(e) {
            var item = e.getTarget(this.itemSelector, this.getTemplateTarget());
            if (item) {
                this.fireEvent("doubletap", this, this.indexOf(item), item, e);
            }
        },

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Alright, I'll look into this and make sure it works. I'm currently working on Ext.List (which extends DataView) and there is still a lot of work that needs to be done on both of them. Expect DataViews and Lists to work much better in the next release.

  3. #3
    Sencha - Community Support Team
    Join Date
    Jun 2010
    Posts
    220
    Vote Rating
    0
    meyerovb is on a distinguished road

      0  

    Default


    Use dataview's itemdoubletap event. Double tap is the native dom event. Itemdoubletap gets the record and item passed to the handler. Currently the documentation lists a second itemtap event instead of itemdoubletap, this has been fixed for the next release.

Similar Threads

  1. With the doubletap, will tap always be called, or is that a bug?
    By rdougan in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 6 Aug 2010, 9:55 PM
  2. Replies: 3
    Last Post: 19 Jul 2010, 4:41 AM
  3. Replies: 1
    Last Post: 31 May 2008, 8:59 AM
  4. Replies: 1
    Last Post: 12 Mar 2008, 1:18 PM
  5. Replies: 6
    Last Post: 23 Jun 2007, 5:00 AM

Thread Participants: 2