Skip to content

WheelEvent turns into MouseEvent in Chrome #73

Closed
@ghost

Description

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.

var xml3dElem = document.querySelector('xml3d');
xml3dElem.addEventListener('mousewheel', wheelEventHandler);

function wheelEventHandler(event) {
    console.log(event);     // will output event of type MouseEvent, not WheelEvent as expected
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions