Skip to content

Commit

Permalink
fix(native-scroll): incorrectly record content offsetWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Apr 19, 2022
1 parent d903b15 commit 6cb2d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/native-scroll/mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function useScrollWrapper({
if (!content.el) return

content.scrollWidth = content.el.scrollWidth
content.offsetWidth = content.el.scrollWidth
content.offsetWidth = content.el.offsetWidth
content.scrollHeight = content.el.scrollHeight
content.offsetHeight = content.el.offsetHeight

Expand Down

0 comments on commit 6cb2d19

Please sign in to comment.