File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 33
33
import RecycleScroller from ' ./RecycleScroller.vue'
34
34
import { props , simpleArray } from ' ./common'
35
35
36
+ const MAX_SCROLL = 9999999999
37
+
36
38
export default {
37
39
name: ' DynamicScroller' ,
38
40
@@ -191,12 +193,12 @@ export default {
191
193
const el = this .$el
192
194
// Item is inserted to the DOM
193
195
this .$nextTick (() => {
194
- el .scrollTop = Number . MAX_SAFE_INTEGER
196
+ el .scrollTop = MAX_SCROLL
195
197
// Item sizes are computed
196
198
const cb = () => {
197
- el .scrollTop = Number . MAX_SAFE_INTEGER
199
+ el .scrollTop = MAX_SCROLL
198
200
requestAnimationFrame (() => {
199
- el .scrollTop = Number . MAX_SAFE_INTEGER
201
+ el .scrollTop = MAX_SCROLL
200
202
if (this .$_undefinedSizes === 0 ) {
201
203
this .$_scrollingToBottom = false
202
204
} else {
You can’t perform that action at this time.
0 commit comments