Results 1 to 10 of 10

Thread: Native style momentum scrolling for iOS 5?

Hybrid View

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

    Default 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,556
    Answers
    3932
    Vote Rating
    1272
      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! 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
    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,556
    Answers
    3932
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  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
    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
  •