我创建了一个使用离子框架的网站 . 除了滚动部分外,其他一切都很好 . 因为我为移动应用程序创建了离子框架,当我滑动页面时滚动是顺畅的 . 但是当我使用鼠标滚动页面时页面的转换是如此之慢,我必须滚动很长时间才能到达终点 . 有没有办法让页面在浏览器中滚动顺畅?
Things I have noticed
-
当我将视图更改为移动视图时,滚动顺畅
-
如果我在移动视图后返回正常视图,滚动工作正常
-
如果我从普通视图刷新页面,则平滑滚动消失
Additional classes added to body and ion-nav-view in above situations
- 当我将视图更改为移动视图时,滚动顺畅
body:class =“grade-a platform-browser platform-android platform-android6 platform-android6_0 platform-ready”
ion-nav-view:nav-view-transition =“android " nav-view-direction=" none " class=" view-container”
- 如果我在移动视图后返回正常视图,滚动工作正常
body:class =“grade-a platform-browser platform-android platform-android6 platform-android6_0 platform-ready”
ion-nav-view:nav-view-transition =“android " nav-view-direction=" none " class=" view-container”
- 如果我从普通视图刷新页面,则平滑滚动消失
body:class =“grade-a platform-browser platform-win32 platform-ready”
ion-nav-view:nav-view-transition =“ios " nav-view-direction=" none " class=" view-container”
2 回答
当我将离子含量更改为
<ion-content overflow-scroll="true" class="has-header">
时,滚动变得平滑这个插件帮助我在一些视图上实现平滑滚动:https://github.com/ionic-team/cordova-plugin-wkwebview-engine#installation-instructions
来源我用谷歌搜索:http://blog.ionic.io/cordova-ios-performance-improvements-drop-in-speed-with-wkwebview/