Animate position of multiple components #1930
-
Hello I've implemented a component that uses a custom However I now want to use the same onWheel event to move other components. I've seen the Is there a way for two components to share the same onWheel event? Cheers Steve |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If the |
Beta Was this translation helpful? Give feedback.
If the
onWheel
event is attached to the window then you could write a custom hook to handle this. Else you could use global state to store thewheel
event value. That's how I would begin to approach the issue, without seeing any code, that's the best I can think of right now.