You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Scroll bounce effect is still visible on iOS emulator and device (should be disabled).
it works as expected on android (no bounce effect)
Expected behavior:
scroll bounce disabled, Steps to reproduce:
must be run using the emulator, or deployed to iOS device.
Related code:
<ion-content no-bounce>
<!-- your content here -->
</ion-content>
Other information:
This feature request might be helpful (#7061) Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
There was another issue (#10329) regarding the bounce effect on iOS which happens when the content is bigger than the screen. The issue was close arguing that this is a normal behavior on iOS, which I agree on when it comes to Safari but which I don't agree when it comes to "native App". As far as I know, I never installed an App from the App Store which was producing such a bouncing effect.
When it comes to my app, I see this bouncing effect as a one of the major reason why we really found the GUI and user interaction better on Android, where this bouncing effect doesn't happen.
Therefore I would really love to see a solution. I invested some hours to try to find a solution (see comments in related issue) but unfortunately didn't found a solution yet :( except maybe at least a quick and dirty solution for one page
Hi folks! So some background on the bound. The bounce is part of iOS's native scrolling behavior. If there is content that exist beyond the bounds of a scrollable element, it will bounce/create the rubber band scroll effect. This is part of how ios handles scrolling.
The "work around" described here can work, but also disables smooth scrolling. Why wasn't this an issue in Ionic 1? Because we used JS scrolling. The no-bounce attribute only applies when the content does not exceed the parent container.
@tobiasmuecksch Please keep the comment constructive. Inappropriate images being post will result in getting banned. This is the one and only warning.
Activity
brandyscarney commentedon May 10, 2017
Thanks for the issue! I confirmed this is an issue when there is enough content to cause the page to overflow. See the following e2e test: https://github.com/driftyco/ionic/tree/master/src/components/content/test/no-bounce
Pitttt commentedon Jun 7, 2017
Any news on this? Any workarounds?
peterpeterparker commentedon Jun 9, 2017
There was another issue (#10329) regarding the bounce effect on iOS which happens when the content is bigger than the screen. The issue was close arguing that this is a normal behavior on iOS, which I agree on when it comes to Safari but which I don't agree when it comes to "native App". As far as I know, I never installed an App from the App Store which was producing such a bouncing effect.
When it comes to my app, I see this bouncing effect as a one of the major reason why we really found the GUI and user interaction better on Android, where this bouncing effect doesn't happen.
Therefore I would really love to see a solution. I invested some hours to try to find a solution (see comments in related issue) but unfortunately didn't found a solution yet :( except maybe at least a quick and dirty solution for one page
danielfliegauf commentedon Jun 26, 2017
¯\_(ツ)_/¯-Workaround (only for pages where content is NOT bigger than the screen)
Add this to your app.scss
.content-ios:not([no-bounce])>.scroll-content::before { bottom: 0; }global packages:
local packages:
System:
tundak commentedon Jul 10, 2017
any update ? no bounce not working for pages that have content bigger than the screen?
global packages:
System:
Node : v6.9.4
OS : macOS Sierra
Xcode : Xcode 8.3 Build version 8E162
ios-deploy : 1.9.1
ios-sim : 3.1.1
npm : 4.2.0
radzik07 commentedon Jul 14, 2017
Unfortunately the solution above is not enough... and no-bounce still doesnt work on 3.5.0.
gregor-srdic commentedon Aug 9, 2017
+1
Lottid commentedon Aug 14, 2017
Me, too.
no-bounce still doesnt work on 3.5.3.
sya71 commentedon Aug 16, 2017
I am sure it's not work on 3.5.3. @brandyscarney
mchenx commentedon Aug 23, 2017
interesting, I'm using v2.2.3 and ion-content has no bouncing, even I set has-bouncing="true", it just doesn't work.
7 remaining items
arcanys-ivan commentedon Oct 12, 2017
any updates on this issue? I can see its still bouncing up, specially pages on Tabs, ionic 3
FabioGois commentedon Oct 15, 2017
¯_(ツ)_/¯ Another Workaround...
arcanys-ivan commentedon Oct 16, 2017
Yes its a workaround, i also tried that, but the scrolling is not nice :( @FabioGois
adnan333bd commentedon Dec 22, 2017
+1
mtuliomk commentedon Jan 5, 2018
1+
jd0048 commentedon Jan 15, 2018
1+
duckfev3r commentedon Jan 15, 2018
+1
thezakman commentedon Jan 19, 2018
+1
obravoInserious commentedon Jan 22, 2018
+1
tobiasmuecksch commentedon Jan 23, 2018
+1
mhartington commentedon Jan 23, 2018
Hi folks! So some background on the bound. The bounce is part of iOS's native scrolling behavior. If there is content that exist beyond the bounds of a scrollable element, it will bounce/create the rubber band scroll effect. This is part of how ios handles scrolling.
The "work around" described here can work, but also disables smooth scrolling. Why wasn't this an issue in Ionic 1? Because we used JS scrolling. The
no-bounceattribute only applies when the content does not exceed the parent container.@tobiasmuecksch Please keep the comment constructive. Inappropriate images being post will result in getting banned. This is the one and only warning.