-
17 Jan 2012 1:53 PM #1
Answered: Delay on popup causing users to double tap
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?
-
Best Answer Posted by mitchellsimoens
Ok then open the popup without any items and once rendered then add items to it.
-
18 Jan 2012 4:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
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.
That will work on a component's element. If you are doing this in a list you can do it like:Code:cmp.mon(cmp.el, { scope : cmp, buffer : 100, tap : function() {} });
or via listeners:Code:list.on('itemtap', function() {}, list, { buffer : 100 });
Code:listeners : { buffer : 100, itemtap : function() {} } listeners : { el : { buffer : 100, tap : function() {} } }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
18 Jan 2012 7:35 AM #3
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?
-
18 Jan 2012 7:38 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
Ok then open the popup without any items and once rendered then add items to it.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote