You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to catch event of wheel by using onWheel of div tag,
I encounter a problem.
The event of wheel affects not only component in which event should be caught but also other components.
Especially when I move my fingers fast on my trackpad of Macbook Air, the problem occurs.
I think I can fix this problem by using react-use-gesture into my code, but I don't know how I can do it.
Is it possible to fix it by react- use gesture?
Could you please tell me how to do?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I try to catch event of wheel by using onWheel of div tag,
I encounter a problem.
The event of wheel affects not only component in which event should be caught but also other components.
Especially when I move my fingers fast on my trackpad of Macbook Air, the problem occurs.
I think I can fix this problem by using react-use-gesture into my code, but I don't know how I can do it.
Is it possible to fix it by react- use gesture?
Could you please tell me how to do?
This is the example of my problem (You can experience in https://codesandbox.io/s/r3f-ibl-envmap-simple-forked-mzju6?file=/src/App.js ).
zoom failed. When I move fingers fast, not only components made by r3f but also other component (and even the entire screen of browser) is zoomed.
Here is my code.
https://codesandbox.io/s/r3f-ibl-envmap-simple-forked-mzju6?file=/src/App.js
I am trying to catch wheel event like
<div className="r3fCanvas" onWheel={onMouseWheel}>
.Change FOV by onWheel and onPinch react-three-fiber#1248
Beta Was this translation helpful? Give feedback.
All reactions