angular-ui / angular-ui/ui-scroll
$window.scrollTo() not handled correctly
- 主要语言
- JavaScript
- 星标
- 326
- 派生
- 104
- PR 合并指标
- 30 天内没有已合并 PR
描述
I discovered a problem using $window.scrollTo(). When using this function to trigger scroll events everything works fine as long as the scroller doesn't need to request new data from the data source. As soon as the scroller needs to request data from the data source the page will stop at a random position.
Here is a plnkr showing this problem: https://plnkr.co/edit/5jANsQnob1YE6DLrSgU6?p=preview
You can use the buttons on top to switch back and forth between position 0 and 100. Everything will work fine. But if you try to switch between position 0 and 2000 the scroller will stop once he needs to requests new data. After multiple times using the button you will reach position 2000 but the scroller won't correctly jump back to 0 (instead it will be something like 80).
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。