Error in scroll wheel handler
AlekseevKonstantin opened this issue · 3 comments
AlekseevKonstantin commented
variables disableTracksMousewheelScrolling and disableTrackXMousewheelScrolling are not class fields since skipped this
...((disableTracksMousewheelScrolling || disableTrackXMousewheelScrolling) && {
onWheel: this.handleTrackXMouseWheel,
}),
therefore always undefined
xobotyi commented
They're component props.
Why you even thought they're class props?
AlekseevKonstantin commented
Maybe I was wrong, but disableTracksMousewheelScrolling and disableTrackXMousewheelScrolling take the value undefined
Tell me how to adjust the horizontal scroll wheel mouse
xobotyi commented
@AlekseevKonstantin you simply pass these props to the component and they disable wheel scrolling, thats all.
<RSC disableTrackXMousewheelScrolling />