I've tried several methods to disable scroll, including using CSS position: fixed
, attribute overflow-scroll="false"
and etc, but all methods failed.
When I swipe down, the buttons will go up and while I swipe up the buttons will go down, like bouncing effect.
May I know any solutions to this issue? Thank you very very much.
I solved same problem using css. (Ionıc 3.6)
Step1: In
ion-content
add a new class :Step2: In your CSS add the code below :
For disable scroll in ion-content can use setScrollDisabled() method. You should follow steps below.
In hello.ts
Content is placed in the scrollable area if provided without a slot. To show a fixed content add
slot="fixed"
.