ocsigen/js_of_ocaml

[FEATURE REQUEST] `wheel` event bindings

prekel opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
Dom_html currently has bindings only for deprecated mousewheel and _DOMMouseScroll events, but now wheel event is supported by all modern browsers.

Describe the solution you'd like
I suggest to define wheelEvent object type inherited from already defined mousewheelEvent. It is possible because legacy props from mousewheelEvent is supported in WheelEvent. I suggest to extend mousewheelEvent with other props from WheelEvent. In a word, I made PR #1273

Describe alternatives you've considered
Make new object type wheelEvent inherited from mousewheelEvent