Mg Thar
Mg Thar

Reputation: 1102

Scrolling with ion-scroll

I want to allow only one scroll type at a time (vertical or horizontal) with ionic scroll component. I tried "locking" attribute at ion-scroll element but no luck. When I drag diagonally it happen like the following image.

enter image description here

Please help me if you know a way to solve this. Thanks in advance.

Sample Code - http://play.ionic.io/app/720567016712

Upvotes: 1

Views: 561

Answers (2)

Ujjwal kaushik
Ujjwal kaushik

Reputation: 1686

<ion-content class="padding" overflow-scroll='false' locking="true" direction="xy" has-bouncing="false">

use this , Don't use ion-scroll now , remove it .. It will work as you want

Hope this helps you .. thanks

Upvotes: 1

Namrata
Namrata

Reputation: 1

You can do it by using locking ="true"

and mention height and width for that ionic

Upvotes: 0

Related Questions