Results 1 to 7 of 7

Thread: LoadMask and carousel swipe issue

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
      0  

    Default LoadMask and carousel swipe issue

    Hi,

    I want to add a LoadMask to the Viewport after the swipe event of the carousel. To do this, I am attaching to the dragend event of the carousel element and adding the LoadMask to the Viewport.

    However, when doing this the page transition is not smooth. Probably, because the LoadMask is blocking the UI transition.

    Is there any workaround this ?

    thanks,

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Wait for the animation to complete before showing the load mask.

    Code:
    carousel.onAfter('activeitemchange', someFunction, carousel);
    in someFunction you can do the loadmask showing as the activeitemchange with onAfter should happen after the animation has completed.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Hi, thanks for the reply.

    That's what I am doing right now. I wanted to know if I could add the LoadMask at the end of the swipe event and animation would continue to happen in the background.

    Thanks,

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You can but the animation running smoothly will vary greatly on each device especially on all the android devices.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Just a doubt. Is the animation for both the carousel transition and the loading mask done using CSS or javascript ?

    Thanks

  6. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Animations are all done with CSS
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
      0  

    Default

    The performance issue is showing in my iPad 3 with iOS 6.0.

    I think this should not happen with this kind of hardware.

    Thanks,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •