Reputation: 1401
I use Framework7 and Cordova wrapper for my IOS app and I need to disable dragging effect in my content.
I have tried disabling pull-to-refresh effect from Cordova side but still the content is draggable and returns original position when release.
Below are not giving expected results
<preference name="DisallowOverscroll" value="true" />
<preference name="UIWebViewBounce" value="false" />
My app is not refreshing when drag down, so I guess it is nothing to do with pull-to-refresh feature. I need to make sure only scrolling works when dragging.
Upvotes: 1
Views: 307
Reputation: 484
I was also searching for a solution and found one.
@implementation UIScrollView (NoBounce) - (void)didMoveToWindow { [super didMoveToWindow]; self.bounces = NO; } @end
Credits: https://github.com/ionic-team/ionic-v3/issues/113#issuecomment-391996908
Upvotes: 1