Is it possible to prevent page scrolling with useWheel(react)? #417
Answered
by
dbismut
hellozyemlya
asked this question in
Q&A
-
Question is self-explanatory. I want detect wheel event but leave page(and possible nested components) scrollbars untouched. Thanks in advance. PS: nice library for lazy persons like me, it includes everything we need :) |
Beta Was this translation helpful? Give feedback.
Answered by
dbismut
Jan 3, 2022
Replies: 1 comment 1 reply
-
Wheel event is independent from scroll. If you have a fixed position body with no overflow, your page won't scroll! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hellozyemlya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wheel event is independent from scroll. If you have a fixed position body with no overflow, your page won't scroll!