Results 1 to 4 of 4

Thread: Delay on popup causing users to double tap

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    3
      0  

    Default Answered: Delay on popup causing users to double tap

    i have an unclick event that opens a floating panel. there is a slight delay but users are double tapping and the double tapping causes the floating panel to close before it opens, giving the impression that it has not opened at all.

    does anyone have any advice on how to go about this issue? is there a way to prevent a second tap for a second while the popup loads?

  2. Ok then open the popup without any items and once rendered then add items to it.

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

    Default

    You can use the buffer listener config to buffer the listener for x amount of milliseconds so if they are double-tapping then it will only fire the last event.

    Code:
    cmp.mon(cmp.el, {
        scope : cmp,
        buffer : 100,
        tap : function() {}
    });
    That will work on a component's element. If you are doing this in a list you can do it like:

    Code:
    list.on('itemtap', function() {}, list, { buffer : 100 });
    or via listeners:

    Code:
    listeners : {
        buffer : 100,
        itemtap : function() {}
    }
    
    listeners : {
        el : {
            buffer : 100,
            tap : function() {}
        }
    }
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    3
      0  

    Default

    there is still the problem of them not seeing the popup right away and then going to click which will cause it to delay again... maybe waiting long enough that it is about to come up right as they click which then closes the popup.

    is there any way to create a buffer after the first click. so the first click initiates it and then all clicks are ignored for a second or two?

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Ok then open the popup without any items and once rendered then add items to it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Posting Permissions

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