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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1334
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    Ok then open the popup without any items and once rendered then add items to it.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •