Skip to content

Commit

Permalink
fix(sticky): 适配taro (jdf2e#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong authored Feb 4, 2024
1 parent 01c9e9b commit 5c07f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/sticky/sticky.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const Sticky: FunctionComponent<Partial<StickyProps>> = (props) => {
}, [])

usePageScroll((res: PageScrollObject) => {
if (getEnv() === 'WEAPP') {
if (getEnv() !== 'WEB') {
handleScroll(res.scrollTop)
}
})
Expand Down

0 comments on commit 5c07f02

Please sign in to comment.