xobotyi/react-scrollbars-custom

Error in scroll wheel handler

AlekseevKonstantin opened this issue · 3 comments

variables disableTracksMousewheelScrolling and disableTrackXMousewheelScrolling are not class fields since skipped this

...((disableTracksMousewheelScrolling || disableTrackXMousewheelScrolling) && {
onWheel: this.handleTrackXMouseWheel,
}),

therefore always undefined

They're component props.
Why you even thought they're class props?

Maybe I was wrong, but disableTracksMousewheelScrolling and disableTrackXMousewheelScrolling take the value undefined
Tell me how to adjust the horizontal scroll wheel mouse

@AlekseevKonstantin you simply pass these props to the component and they disable wheel scrolling, thats all.

<RSC disableTrackXMousewheelScrolling />