Results 1 to 4 of 4

Thread: Reduce delay of itemsingletap on xtype:list

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default Answered: Reduce delay of itemsingletap on xtype:list

    Hi

    Is there a way to reduce the delay when pressing on a listitem on a list?
    This will fire the event: itemsingletap
    The problem is, that if the user clicks more than one time, it will fire the event more than once and its a little annoying to wait when i pressed.

    Thx in advance

    Chears neutron

  2. Currently it waits 300ms. YOu can change this with the maxDuration config of the Ext.event.recognizer.DoubleTap class. This is configurable from Ext.application: http://docs.sencha.com/touch/2-0/#!/...od-application Look at the eventPublishers example in Ext.application.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,411
    Answers
    3898
    Vote Rating
    1290
      0  

    Default

    Currently it waits 300ms. YOu can change this with the maxDuration config of the Ext.event.recognizer.DoubleTap class. This is configurable from Ext.application: http://docs.sencha.com/touch/2-0/#!/...od-application Look at the eventPublishers example in Ext.application.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Thx, I will give it a try

  5. #4
    Sencha User mcelotti's Avatar
    Join Date
    Nov 2013
    Posts
    63
    Answers
    1
    Vote Rating
    8
      0  

    Default

    a quite complete list of recognizers config should be (just my 2 cents):
    Code:
    eventPublishers : {
            touchGesture : {
                recognizers : {
                    tap : null,
                    doubleTap : null,
                    drag : null,
                    edgeSwipe : null,
                    longPress : null,
                    pinch : null,
                    rotate : null,
                    swipe : null
                }
            }
        }
        }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •