Skip to content

Commit 3ff55db

Browse files
authored
Update index.js
1 parent eeadf18 commit 3ff55db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,11 @@
587587
}
588588

589589
return h(rtag, {
590-
'ref': 'vsl',
591-
'style': {
592-
'display': 'block',
593-
'overflow-y': 'auto',
594-
'height': this.size * this.remain + 'px'
590+
ref: 'vsl',
591+
style: {
592+
display: 'block',
593+
'overflow-y': this.size >= this.remain ? 'auto' : 'inital',
594+
height: this.size * this.remain + 'px'
595595
},
596596
on: {
597597
'&scroll': dbc ? _debounce(this.onScroll.bind(this), dbc) : this.onScroll

0 commit comments

Comments
 (0)