1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Answers
    5
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default Unanswered: Native style momentum scrolling for iOS 5?

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,643
    Answers
    3453
    Vote Rating
    816
    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


    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 @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
    Apr 2011
    Posts
    49
    Vote Rating
    0
    mobile207 is on a distinguished road

      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
    52
    Answers
    3
    Vote Rating
    1
    jvwelzen is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,643
    Answers
    3453
    Vote Rating
    816
    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


    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 @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.

  6. #6
    Sencha User
    Join Date
    Nov 2007
    Location
    Los Angeles
    Posts
    79
    Answers
    1
    Vote Rating
    13
    wnielson will become famous soon enough

      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
    farion will become famous soon enough

      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
    trkaky is on a distinguished road

      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
    Ukraine, Mykolayiv
    Posts
    99
    Vote Rating
    1
    rsqw is on a distinguished road

      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
    trkaky is on a distinguished road

      0  

    Default


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