-
26 Nov 2012 8:33 AM #1
Unanswered: swipe event on the loadmask
Unanswered: swipe event on the loadmask
Hi everyone,
I want to use swipe(with left direction) on my loadmask but it doesn't work:
Code:... xtype:'loadmask', id:'clientProfileOverlayTooltip', cls:'overlayTooltip', message:'', indicator:false, styleHtmlContent:true, html:Utils.getOverlayLayout(), listeners:{ tap:function () { ... }, swipe:{ ... } ...
-
26 Nov 2012 10:23 AM #2
The swipe event is swallowed up in the mask. Here's a snippet from the source for Ext.Mask which tells the story:
Why do you want to handle swiping the mask?Code:initialize: function() { this.callSuper(); this.element.on('*', 'onEvent', this); }, onEvent: function(e) { var controller = arguments[arguments.length - 1]; if (controller.info.eventName === 'tap') { this.fireEvent('tap', this, e); return false; } if (e && e.stopEvent) { e.stopEvent(); } return false; },
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
26 Nov 2012 11:37 PM #3
I use loadmask to show help layer with notice "Swipe left to go to the search results and tap to close this notice"
-
27 Nov 2012 10:17 AM #4
You could use a centered overlay and use the overlay for handling the swipe and tap to exit.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.



Reply With Quote