Don't momentum if no pixel change Fixed #61

This commit is contained in:
Max Lynch
2013-10-28 22:10:11 -05:00
parent f3bec7f759
commit 5b618ffdd9
3 changed files with 12 additions and 2 deletions

View File

@ -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));