6 Nov 2011 8:33 PM #1
Unanswered: disable/catch swipe event for a panel
Another question for you all- I've got a div being loaded in through contentEl with a slideshow in it that uses swipe motions to change images. The panel it's being loaded into however, is part of a carousel and the swipes begin to get confused on tablet devices and both try to scroll at once, which naturally makes things stop working or look bad.
Is there a way to catch the swipe/drag event for a panel and stop it while the slideshow is the component being touched? Possibly through "onMouseDown" then "onMouseUp" events through the slideshow or something?
Much appreciated everyone!
17 Nov 2011 11:18 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
There will always be conflicting events being fired and it will be a struggle for the components to figure out who is suppose to get the event.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.
17 Nov 2011 11:43 PM #3
You can here disable the swipe feature by
panel.alllisteners to false