对于Windows Phone 8来说,离子滚动太迟了

时间:2015-01-21 17:15:30

标签: angularjs ionic

我正在使用Ionic为Android和Windows Phone 8.1构建混合应用程序。

滚动时,代码如下:

<ion-content padding="true" scroll="true" direction="y" scrollbar-y="false" scrollbar-x="false" has-bouncing="true">
  <!-- creating many paragraphs -->
  <p ng-repeat="content in contents">{{content}}</p> //many paragraph
</ion-content>

在Android中运行顺利,但在Windows Phone 8.1中非常滞后

我甚至使用了溢出滚动,但它仍然太慢了。

请告知我此问题的任何修复或解决方法。

感谢adnvance!

2 个答案:

答案 0 :(得分:1)

这可能与您无关,但我遇到了类似的问题。使用wp8平台(例如ionic platform add wp8)时,应用程序似乎包含在Silverlight中并且速度非常慢。相当无法使用。

更改为Windows通用应用程序(ionic platform add windows),这要好得多(但仍有其他问题与此帖无关)。

答案 1 :(得分:0)

使用原生滚动。

可以使用overflow-scroll=”true”上的ion-content或使用$ionicConfigProvider在当前版本的Ionic中全局设置原始滚动。