Results 1 to 10 of 10

Thread: Native style momentum scrolling for iOS 5?

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Answers
    5
    Vote Rating
    3
      0  

    Default Unanswered: Native style momentum scrolling for iOS 5?

    http://johanbrook.com/browsers/nativ...rolling-ios-5/

    Code:
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    As far i can tell this is not implemented yet in ST2.0.

    Have you worked on this "native" css scroll for lists ? Do you plan to ?
    Heard that it could be somehow bugged in IOS5, so i'm wondering where are you on this.

    I think it would be great as i am not satisfied with the scrolling experience on an iPhone4 running IOS5.

    On a javascript-only solution :

    I've been quite impressed by J.Hewitt http://scrollability.com/.

    http://scrollability.com/examples/tableview.html is really smooth on my device.

    Anything good to extract from this?
    Do you think it could be easy to somehow override Ext.List with an Ext.ScrollabilityList ? How should i start ? extending Ext.List or creating a new DataView ?

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

    Default

    To be honest, our scroller works phenomenally and performs fantastic. Not being a marketing guy with those words but it really performs like any native app. That being said, we always have our eye on how to do things better so I can't rule out that we will never look into it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Apr 2011
    Posts
    49
    Vote Rating
    0
      0  

    Default

    Sencha momentum scrolling works great until you insert 20 or more 80x60px jpg thumbnails into a list.. There is pretty big performance drop from what I've seen so far..

    Wondering if anyone has tried this technique with Sencha?

    http://johanbrook.com/browsers/nativ...rolling-ios-5/

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

    Default

    Hi

    Has anyone tryed this on a Ext.List

    I upgraded my iphone 3gs to ios 5 and now

    my lists are not scrolling verry well when I put 200 items in there with avatar images..

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Answers
    3885
    Vote Rating
    1296
      0  

    Default

    You shouldn't have 200 items rendered in a list, that is way too many. You are on a mobile device, you can't do whatever you wish, it has limits.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  6. #6
    Sencha User
    Join Date
    Nov 2007
    Location
    Los Angeles
    Posts
    79
    Answers
    1
    Vote Rating
    14
      0  

    Default

    I was wondering if anyone had made any progress on this? I've tried subclassing Ext.Container and modifying the CSS to enable native scrolling for the container's content. I can get it to work on Chrome and Safari but not on iOS.

    I've tested the native scrolling (in a simple static HTML file) with a huge grid of images (over 200 images ~15kb each) and the performance is perfect on my iPhone 4. The same layout with only 25 images using Sencha's scrolling is extremely choppy.

    I've tried the following CSS on the container's "x-inner" element, but to no avail:

    Code:
    .x-inner {
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        -webkit-box-flex: 0;
        -webkit-user-drag: element;
        -webkit-user-select: text;
    }
    Any tips would be greatly appreciated.

  7. #7
    Sencha User farion's Avatar
    Join Date
    Feb 2008
    Location
    Karlsruhe, Germany
    Posts
    75
    Answers
    1
    Vote Rating
    10
      0  

    Default

    Maybe the scroll gesture on your device is catched by sencha touch. Perhaps it is possible to avoid this.

    Farion

  8. #8
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    16
    Vote Rating
    1
      0  

    Default

    any luck? I've been trying to do the same but so far with ST2.2 still something is preventing the native scroller.

  9. #9
    Sencha User
    Join Date
    Jun 2011
    Location
    Kyiv, Montreal
    Posts
    124
    Answers
    3
    Vote Rating
    2
      0  

    Default

    +1 to the above this question.
    p.s: native scrollbar works very very fast and, smooth, without any lags with 16 000 DOM elements on my ipod touch, sencha's one starts lagging after 400-500 elements in DOM

  10. #10
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    16
    Vote Rating
    1
      0  

    Default

    I had a workaround to sort this out. can be found on http://stackoverflow.com/questions/9...crolling-touch

Posting Permissions

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