Skip to content

Commit 4412b36

Browse files
author
Guillaume Chau
committed
chore: comment about global scroll target
1 parent 4397a45 commit 4412b36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mixins/scroller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default {
8686
methods: {
8787
getListenerTarget () {
8888
let target = ScrollParent(this.$el)
89+
// Fix global scroll target for Chrome and Safari
8990
if (target === window.document.documentElement || target === window.document.body) {
9091
target = window
9192
}

0 commit comments

Comments
 (0)