React-native-webview: decelerationRate prop doesn't have any effect for WKWebviews

Created on 2 Oct 2019  路  3Comments  路  Source: react-native-webview/react-native-webview


Bug description:
Regardless of what value I set decelerationRate to, it seems to not change the behavior of the webview. Instead, it stays at relatively high deceleration rate. The decelerationRate is much higher than the same url when opened in iOS safari.

To Reproduce:
Made a Snack reproducing this:

https://snack.expo.io/@readwise/decelerationrate-bug-example

Expected behavior:
Notice the iOS scroll deceleration rate in the Snack, then open the same webpage on iOS safari and try scrolling. On iOS safari the deceleration is a lot slower, and feels more natural.

Environment:

  • OS: iOS
  • OS version: 13
  • react-native version: latest?
  • react-native-webview version: 7.4.0
Stale bug report

All 3 comments

also seeing this

Hello 馃憢, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Update value to an integer - works for me as such decelerationRate={1}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheMakerOleguch picture TheMakerOleguch  路  3Comments

niranjan-b-prajapati picture niranjan-b-prajapati  路  3Comments

AdamZaczek picture AdamZaczek  路  3Comments

celciusjj picture celciusjj  路  3Comments

codesinghanoop picture codesinghanoop  路  3Comments