Reputation: 476
I'm using Ionic to build a hybrid app for Android and Windows Phone 8.1.
When scrolling, the below code:
<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>
is working smoothly in Android, but very laggy in Windows Phone 8.1
I even used overflow-scroll, but it is still too slow.
Please advise me any fix or workaround for this issue.
Thanks in adnvance!
Upvotes: 3
Views: 1616
Reputation: 38352
Use native scrolling.
Native scrolling can be enabled using overflow-scroll=”true”
on your ion-content
or using the $ionicConfigProvider
to set it globally in current versions of Ionic.
Upvotes: 0
Reputation: 1023
This may not be relevant to you, but I had a similar issue. When using the wp8
platform (e.g. ionic platform add wp8
) the app seemed to be wrapped in Silverlight and was painfully slow. Pretty unusable.
Changing to a Windows universal app (ionic platform add windows
) it was much, much better (but still has other problems not relevant to this post).
Upvotes: 1