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

WebView doesn't have momentum scrolling - IOS #1070

Closed
avnerI opened this issue Dec 9, 2019 · 3 comments
Closed

WebView doesn't have momentum scrolling - IOS #1070

avnerI opened this issue Dec 9, 2019 · 3 comments

Comments

@avnerI
Copy link

avnerI commented Dec 9, 2019

The webView doesn't have momentum scrolling for IOS devices.
No matter if the destination URL has -webkit-overflow-scrolling: touch css property set.

To Reproduce:

  1. Any fresh installation of react-native
  2. Install react-native-webview
  3. Run on IOS device when the url is directing to a website that provides momentum scrolling in regular browser (Safari)

Screen Shot 2019-12-09 at 16 46 22

Expecting to be able to scroll with momentum scrolling in IOS devices

Environment:

  • OS: IOS
  • OS version: 11.0 and above
  • react-native version: 0.61.5
  • react-native-webview version: 7.6.0
@avnerI
Copy link
Author

avnerI commented Dec 9, 2019

I've found this:
facebook/react-native#5527
just add <WebView ..... decelerationRate='normal' ... />

The naming and the change in file names on the IOS side made it hard to find

@avnerI avnerI closed this as completed Dec 9, 2019
@phyng
Copy link

phyng commented Mar 26, 2020

@avnerI Thank you, you made my day!

@Rutvij07
Copy link

Rutvij07 commented Sep 22, 2022

The solution worked, lovely.Thank you @avnerI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants