Skip to content

Commit 49f0290

Browse files
committed
Fixed scrollIntoView strange bug #198
1 parent 2de814c commit 49f0290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const VirtualList = Vue.component('virtual-list', {
125125
scrollToBottom () {
126126
const { shepherd } = this.$refs
127127
if (shepherd) {
128-
shepherd.scrollIntoView(false)
128+
this.scrollToOffset(shepherd[this.isHorizontal ? 'offsetLeft' : 'offsetTop'])
129129

130130
// check if it's really scrolled to the bottom
131131
// maybe list doesn't render and calculate to last range

0 commit comments

Comments
 (0)