Results 1 to 5 of 5

Thread: Sencha Touch 2- Performance: profiles - list overscroll on Android and class number

  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    71
    Answers
    3

    Default Sencha Touch 2- Performance: profiles - list overscroll on Android and class number

    Hello All,
    I have a sencha touch 2 app and I would like to stop overscroll on Android device for a better performance in list display

    Now my question is: if I'm doing it by creating profiles android classes with blocked list and general classes with overscroll do I risk to double the number of classes loaded by the App hampering again performances?


    thank you in advance for your advice in this
    Alessandro!!!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    You can disable the bounce affect (overscroll) via this on the list:

    Code:
    scrollable : {
        direction                : 'vertical',
        momentumEasing           : {
            momentum    : {
                acceleration : 30,
                friction     : 0.5
            },
            bounce      : {
                acceleration  : 0.0001,
                springTension : 0.9999
            },
            minVelocity : 5
        },
        outOfBoundRestrictFactor : 0
    }
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    71
    Answers
    3

    Default

    I know already the code from one of the previous forum post, thank you

    my question is wether i need to create profiles (for android and non android devices) in order to keep the nice overscroll on iphone device and thus is

    with profiles I risk to double the classes loaded by the framework at startup mining again performance from another side


    thank you again for support
    alex

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    You don't really need to, you can set this variably in a list definition using the applyScrollable method.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  5. #5
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    71
    Answers
    3

    Default

    But, by doing this would be method be applied also for iphone devices (preventing the nice overscroll effect so effective there and that users are used to)??

    thank you again for clarification

Tags for this Thread

Posting Permissions

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