Replies: 2 comments
-
Can you describe the use case you are trying to implement? The lightbox in its default configuration prevents default wheel events over here - |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the prompt response and for pointing me to the specific code snippet! I really appreciate the detailed explanation—it gave me a much better understanding of how the wheelEvent operates under the hood. After reviewing my previous implementation, I realized that I had missed adding the ! before the isOpen boolean. I’ve now updated the code accordingly.
To give you a clearer idea of what I’m trying to achieve, I’ve prepared a visual explanation using Excalidraw. Here’s the link: excalidraw I sincerely apologize for any earlier oversights or typos in my explanation. Thanks again for your insights and for helping me better understand the implementation! |
Beta Was this translation helpful? Give feedback.
-
I’m currently implementing a feature where I need to disable pointer, keyboard, and scroll events when a controller (controlled by an isOpen state) is active.
I attempted to block these events using the subscribeSensors API provided by the library. However, I’m encountering the following error:
Unable to preventDefault inside passive event listener invocation.
here is my code:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions