We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28a14c commit 2f7679fCopy full SHA for 2f7679f
src/components/RecycleList.vue
@@ -204,7 +204,7 @@ export default {
204
h = heights[i].accumulator
205
if (h < scroll.top) {
206
a = i
207
- } else if (i < count && heights[i + 1].accumulator > scroll.top) {
+ } else if (i < count - 1 && heights[i + 1].accumulator > scroll.top) {
208
b = i
209
}
210
i = ~~((a + b) / 2)
src/components/VirtualScroller.vue
@@ -201,7 +201,7 @@ export default {
201
202
if (h < scrollTop) {
203
- } else if (i < l && heights[i + 1].accumulator > scrollTop) {
+ } else if (i < l - 1 && heights[i + 1].accumulator > scrollTop) {
0 commit comments