1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Answers
    1
    Vote Rating
    0
    Rhogar is on a distinguished road

      0  

    Question Unanswered: disable/catch swipe event for a panel

    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!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,633
    Answers
    3453
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    15
    Answers
    3
    Vote Rating
    0
    sangampandey is on a distinguished road

      0  

    Default


    You can here disable the swipe feature by
    panel.alllisteners to false