Roman Šimr
Roman Šimr

Reputation: 81

Disable ListView scroll bouncing

is somehow possible to disable scroll bouncing using classic ListView?

<ListView [items]="countries">
    <ng-template let-country="item" let-i="index" let-odd="odd" let-even="even">
        <StackLayout>

        </StackLayout>
    </ng-template>
</ListView>

Upvotes: 0

Views: 318

Answers (1)

Manoj
Manoj

Reputation: 21898

Set bounces attribute to false on the native view (UITableView).

onLoaded(args) {
    if (args.object.ios) {
        args.object.ios.bounces = false;
    }
}

Playground Sample

Upvotes: 2

Related Questions