diff options
Diffstat (limited to 'src/Lib/Dom/Event.ml')
-rw-r--r-- | src/Lib/Dom/Event.ml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Lib/Dom/Event.ml b/src/Lib/Dom/Event.ml index acdc9fd..861afcf 100644 --- a/src/Lib/Dom/Event.ml +++ b/src/Lib/Dom/Event.ml @@ -1,3 +1,11 @@ -external preventDefault : Dom.event -> unit = "preventDefault" [@@bs.send] +external prevent_default : Dom.event -> unit = "preventDefault" + [@@bs.send] -external target : Dom.event -> Dom.element = "target" [@@bs.get] +external target : Dom.event -> Dom.element = "target" + [@@bs.get] + +external page_x : Dom.mouseEvent -> float = "pageX" + [@@bs.get] + +external page_y : Dom.mouseEvent -> float = "pageY" + [@@bs.get] |