Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy SDK 3.2.0 Scrollview without momentum / inertia

$
0
0

Hello.

I've worked before with scrollviews with Android. They always had, like iOS, a momentum when I release my finger from screen.

But now I'm working with SDK 3.2.1 (or 3.2.0 is the same) and Scrollviews in Android don't have inertia when I scroll.

Is it a bug? Is there a new property? This is my code:

<Alloy>
    <Window id ="mainWin">
        <View id="cabecera">
            <View id = "subcab" />
            <ImageView id="logoSup"/>
            <Button id="butQR" onClick="showQR" />
        </View>
        <ScrollView id="tv"/>
        <Require id="cargando" src="cargando" />>
    </Window>
</Alloy>
And tss
"#tv": {
    backgroundColor: "#d1eced",
    zIndex:-99,
    top:62,
    height: Ti.UI.FILL,
    contentHeight: Ti.UI.SIZE,
    layout: 'vertical',
    scrollType: 'vertical'
}
I fill the Scrollview, for example, with:
for (var c=0;c<50;c++) {
 
    $.tv.add(Ti.UI.createLabel({text: 'TESTING SCROLL INERTIA'}));
 
 }
And the scroll stops when I release my finger. No momentum there :(

Any help?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>