Can't find how to prevent scroll on native scrolling


#1

Hello,

I really can’t find how to disable scrolling in my ion-content (with native scrolling) on android using the $ionicScrollDelegate service.

Here’s my ion-content :

<ion-content has-bouncing="false" scrollbar-y="false" delegate-handle="mainScroll" overflow-scroll="true">

Nothing extravagant. Now I tried all the solutions i could think off with $ionicScrollDelegate,

$ionicScrollDelegate.$getByHandle("mainScroll").freeze(true);
$ionicScrollDelegate.freezeAllScrolls(true);
$ionicScrollDelegate.getScrollView().options.freeze = true;
$ionicScrollDelegate.getScrollView().freeze(true);
etc...

This is the property i used to change before using native scrolling :

$ionicScrollDelegate.getScrollView().options.freeze;

It seems like it doesn’t even exists in the options array anymore.
Is it a bug or am I missing something ?

Thank you for your help.


#2

Anyone having the same issue ?


#3

I have this issue on Android only. Anyone having else?


#4

iOS too. driving me nuts.


#5

I did a CSS hack: set overflow-x and overflow-y to hidden on the ionic-scroll div.