question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webview scroll jumps erratically when scrolled fast enough

See original GitHub issue

Bug description:

Scrolling inside webview is not behaving properly, when you scroll fast enough, it jumps erratically. This doesn’t happen when you scroll slowly though.

To Reproduce:

Freshly created project using react-native-webview 5.12.1.

<WebView source={{uri: "https://mnurrahman.com"}} />

Expected behavior:

Scroll normally without jumps when you scroll fast.

Screenshots/Videos:

https://youtu.be/W_44lhPTJ6k

Environment:

  • OS: Android
  • OS version: Android 9.0
  • react-native version: 0.59.5
  • react-native-webview version: 5.12.1

I can’t upgrade the webview to the newest version because of AndroidX. I would like to use react-native-webview version if possible < 6.0. Any help would be appreciated. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

5reactions
MossPcommented, Sep 18, 2020

Any joy on this one? I’m also seeing this behaviour on 10.8.2

2reactions
martinthedinovcommented, Apr 20, 2021

I had the same issue on the latest React Native and react-native-webview on Android. The solution was to add this attribute to the <WebView> element:

androidHardwareAccelerationDisabled={false}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webview scroll jumps erratically when scrolled fast enough
Scrolling inside webview is not behaving properly, when you scroll fast enough, it jumps erratically. This doesn't happen when you scroll slowly ...
Read more >
Android webview scroll speed gets occasionally fast
While building a SNS hybrid application, I noticed that the webview gets scrolled nearly twice the distance than the actual gesture distance ...
Read more >
Google Pixel 7 & 7 Pro screen scrolling glitch comes to light
Some Google Pixel 7 and 7 Pro users are facing a glitch where the screen scrolling is lagging or stuttering, but there are...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Fixed flickering while scrolling when the keyboard scrolling spring ... Fixed capturing a canvas that is not in the DOM leading to erratic...
Read more >
Webview scrolling not as smooth as chrome browser scrolling
I am using Webview and adding the ChromeClient to it. I am noticing that vertical scrolling of pages are not very smooth as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found