We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de46788 commit 9abb1a8Copy full SHA for 9abb1a8
1 file changed
src/components/ScrollCardsNavigator.js
@@ -48,7 +48,8 @@ function ScrollCardsNavigator() {
48
return
49
}
50
trackPageScroll(direction)
51
- const { offsetWidth, scrollLeft } = scrollBarContainer.current.children[0]
+ const { scrollLeft } = scrollBarContainer.current
52
+ const { offsetWidth } = scrollBarContainer.current.children[0]
53
let extraPadding = 32 // Should be calculated dynamically
54
55
const position =
0 commit comments