Within my threejs (i.e webgl) viewer, I am rendering simple 2D icons using div elements.
To enable zoom in and out functionality on my models similar to trackballcontrols, I handle the "wheel" event. While this works fine in most cases, there is one exception.
In a scenario where my mouse hovers over one of these 2D div elements, the "wheel" event does not reach the threejs viewer preventing the zoom action from taking place.
I am curious if there is a default "wheel" event handler for a div element and if not, what could be causing this issue?
Edit:
After some investigation, I discovered that using "pointer-events: none" partially resolves the issue by allowing the wheel event to pass through. However, this also removes the click property from the div element. What would be the best way to address this situation?