mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Don't momentum if no pixel change Fixed #61
This commit is contained in:
@ -414,7 +414,7 @@
|
||||
var scrollTop = e.scrollTop;
|
||||
|
||||
var highWater = Math.max(0, e.scrollTop + this.virtualRemoveThreshold);
|
||||
var lowWater = Math.min(scrollHeight - viewportHeight, Math.abs(e.scrollTop) + viewportHeight + this.virtualAddThreshold);
|
||||
var lowWater = Math.min(scrollHeight, Math.abs(e.scrollTop) + viewportHeight + this.virtualAddThreshold);
|
||||
|
||||
var itemsPerViewport = Math.floor((lowWater - highWater) / itemHeight);
|
||||
var first = parseInt(Math.abs(highWater / itemHeight));
|
||||
|
||||
Reference in New Issue
Block a user