Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 72027a8

Browse files
authored
fix: wheelevent extends mouseevent (#167)
* fix: wheelevent extends mouseevent Webapi__Dom__MouseEvent getters in Webapi__Dom__WheelEvent * Test wheelevent changes * Fix syntax error
1 parent 6b2a63e commit 72027a8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Webapi/Webapi__Dom/Webapi__Dom__WheelEvent.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type t = Dom.wheelEvent;
22

33
include Webapi__Dom__Event.Impl({ type nonrec t = t; });
44
include Webapi__Dom__UiEvent.Impl({ type nonrec t = t; });
5+
include Webapi__Dom__MouseEvent.Impl({ type nonrec t = t; });
56

67
[@bs.new] external make : string => t = "WheelEvent";
78
[@bs.new] external makeWithOptions : (string, Js.t({..})) => t = "WheelEvent";

tests/Webapi/Webapi__Dom/Webapi__Dom__WheelEvent__test.re

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ stopPropagation(event);
2323
let _ = detail(event);
2424
let _ = view(event);
2525

26+
/* MouseEvent */
27+
let _ = clientX(event);
28+
2629
/* WheelEvent */
2730
let _ = deltaX(event);
2831
let _ = deltaY(event);

0 commit comments

Comments
 (0)