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
Usually when using an eventhandler for "mousewheel" the event is of type WheelEvent. However xml3d generates a MouseEvent which is missing information about the wheel delta. As far as I know this only applies to Chrome. Firefox uses a DOMMouseScroll Event instead.
varxml3dElem=document.querySelector('xml3d');xml3dElem.addEventListener('mousewheel',wheelEventHandler);functionwheelEventHandler(event){console.log(event);// will output event of type MouseEvent, not WheelEvent as expected}
The text was updated successfully, but these errors were encountered:
Usually when using an eventhandler for "mousewheel" the event is of type WheelEvent. However xml3d generates a MouseEvent which is missing information about the wheel delta. As far as I know this only applies to Chrome. Firefox uses a DOMMouseScroll Event instead.
The text was updated successfully, but these errors were encountered: