Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollToBottom doesn't work at all on ios #10936

Closed
bonoadil opened this issue Mar 27, 2017 · 9 comments
Closed

ScrollToBottom doesn't work at all on ios #10936

bonoadil opened this issue Mar 27, 2017 · 9 comments
Assignees

Comments

@bonoadil
Copy link

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
scrollToBottom on Content not work anymore on ios, and works fine in brower & android.
i seems to be a regression. it's failed only in version 2.3.0 and works fine on 2.2.0

Expected behavior:
Should scroll to the bottom

Steps to reproduce:

https://github.com/bonoadil/blankDemo

@shanehughes3
Copy link

We're having this issue as well - the view moves up, then gets pulled back down. It also doesn't appear to be pulling up the correct distance: if you use the demo above and scroll on your own to just one line above the bottom, then hit the icon, the content pulls up much further than a single line.

I've tried:

  • setting -webkit-overflow-scrolling: auto; to make sure it's not a problem with ios elastic/bouncy scrolling
  • removing all transitions/animations on the page and delaying the scrollToBottom with a setTimeout
  • calculating the scrolling myself using getContentDimensions() and scrollTo()

It's working perfectly on android... and not at all on ios.

@rbruflodt
Copy link

I'm having the same problem with scrollToTop() on ios. Works fine on Android and browser.

@ysgk
Copy link

ysgk commented Apr 5, 2017

Same problem.
I tried wkwebview as a test and it seems working.

@manucorporat
Copy link
Contributor

I didn't notice it was a UIWebView only issue.

I am working in a good fix for UI right now. But in the meantime, what is stoping you to use WKWebView? We have plans to deprecate UI very soon, making WK the default option.

@manucorporat manucorporat self-assigned this Apr 6, 2017
manucorporat added a commit that referenced this issue Apr 6, 2017
manucorporat added a commit that referenced this issue Apr 6, 2017
@nishantpant
Copy link

I don't understand all this. This is still ionic right? How are you guys choosing to use UIWebView vs WKWebView? That is ionics own implementation. As an ionic developer all we are doing is using ion-content.

@marcd123
Copy link

marcd123 commented Jul 3, 2017

I'm still having this issue under the same implementations listed above.

On iOS, scrollToBottom() is in fact scrolling to the top of ion-content instead.

@s1lviu
Copy link

s1lviu commented Sep 8, 2017

Same issue with ionic (Ionic CLI) : 3.9.2 only on iOS.
On Android worked after I've added a 300 ms delay.

@murillobarata
Copy link

Same issue!

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants