Reputation: 1102
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.
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
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
Reputation: 1
You can do it by using locking ="true"
and mention height and width for that ionic
Upvotes: 0