Commit dce8b1d7 authored by hbcui1984's avatar hbcui1984

解决icon页面在部分Android 5.0手机上滚动卡顿的问题

parent 8d49b13f
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!--标准mui.css--> <!--标准mui.css-->
<link rel="stylesheet" href="../css/mui.min.css"> <link rel="stylesheet" href="../css/mui.min.css">
<!--App自定义的css--> <!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="../css/app.css"/> <!-- <link rel="stylesheet" type="text/css" href="../css/app.css"/> -->
<style> <style>
.flex-container { .flex-container {
display: -webkit-box; display: -webkit-box;
......
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
</li> </li>
<li class="mui-table-view-cell"> <li class="mui-table-view-cell">
<a class="mui-navigate-right" href="examples/icons.html"> <a class="mui-navigate-right" open-type="common" href="examples/icons.html">
icon(图标) icon(图标)
</a> </a>
</li> </li>
...@@ -551,6 +551,10 @@ ...@@ -551,6 +551,10 @@
webview_style.zindex = 9998; webview_style.zindex = 9998;
webview_style.popGesture = ~id.indexOf('offcanvas-with-right') ? "close" : "none"; webview_style.popGesture = ~id.indexOf('offcanvas-with-right') ? "close" : "none";
} }
//图标界面需要启动硬件加速
if(~id.indexOf('icons.html')){
webview_style.hardwareAccelerated = true;
}
mui.openWindow({ mui.openWindow({
id: id, id: id,
url: this.href, url: this.href,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment