Skip to content

Commit 8e40e4d

Browse files
authored
fix(sticky): 修复滚动事件的监听方式 (#3072)
1 parent ce1d47e commit 8e40e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/__VUE/sticky/index.taro.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default create({
6565
emit('change', val)
6666
}
6767
)
68-
if (props.scrollTop !== -1) {
68+
if (props.scrollTop === -1) {
6969
usePageScroll(handleScroll)
7070
} else {
7171
watch(() => props.scrollTop, handleScroll)

0 commit comments

Comments
 (0)