Skip to content

Commit

Permalink
fix flickering while scrolling for webview
Browse files Browse the repository at this point in the history
  • Loading branch information
extralam committed Feb 4, 2015
1 parent bab1baa commit c2407cd
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -230,7 +230,10 @@ public TiUIWebView(TiViewProxy proxy)
if (Build.VERSION.SDK_INT > 16 || enableJavascriptInterface) {
client.getBinding().addJavascriptInterfaces();
}

//setLayerType() is supported in API 11+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
webView.client = client;

if (proxy instanceof WebViewProxy) {
Expand Down

1 comment on commit c2407cd

@Gertjancom
Copy link
Contributor

@Gertjancom Gertjancom commented on c2407cd Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this is done. Are we not allowed to use hardware accelerated WebViews from Honeycomb (3.0) anymore? This commit causes really bad performance. It almost looks like <= was meant, instead of >=.

See: https://jira.appcelerator.org/browse/AC-4479 and https://youtu.be/1sDVtweBNus

Please sign in to comment.