Skip to content

Commit

Permalink
fix(sticky): 修复滚动事件的监听方式 (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored May 13, 2024
1 parent ce1d47e commit 8e40e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/__VUE/sticky/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default create({
emit('change', val)
}
)
if (props.scrollTop !== -1) {
if (props.scrollTop === -1) {
usePageScroll(handleScroll)
} else {
watch(() => props.scrollTop, handleScroll)
Expand Down

0 comments on commit 8e40e4d

Please sign in to comment.