我在使用 Famo.us scrollview
的移动设备上遇到滚动性能不佳的问题。我正在使用 Famo.us/Angular
。这是使用的代码:
<fa-app>
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-view ng-repeat="item in items" class="item">
<fa-surface fa-pipe-to="eventHandler" fa-background-color="'#FA5C4F'" fa-size="[undefined, true]">
<img ng-src="{{ item.src }}" />
</fa-surface>
</fa-view>
</fa-scroll-view>
</fa-app>
scrollview
选项设置为默认值。 Famo.us 的一些演示视频显示出完全平滑的滚动效果。但是,我无法将其转化为实践。因为我没有修改任何 scrollview
选项并使用准系统模板,所以我想知道是什么原因造成的。
最佳答案
即使是 Javascript 代码也非常慢,没有内容!看看这个demo 。 性能非常糟糕,我认为您在使用它之前需要三思。
关于famo.us - 糟糕的滚动性能 — Famo.us/Angularscrollview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27022405/