Skip to content

Commit 094d528

Browse files
vouillonhhugo
authored andcommitted
Dom_html: add window's scroll{X,Y} properties and scrollTop method
1 parent 83ee000 commit 094d528

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/js_of_ocaml/dom_html.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2321,8 +2321,14 @@ class type window = object
23212321

23222322
method blur : unit meth
23232323

2324+
method scrollX : number_t readonly_prop
2325+
2326+
method scrollY : number_t readonly_prop
2327+
23242328
method scroll : number_t -> number_t -> unit meth
23252329

2330+
method scrollTo : number_t -> number_t -> unit meth
2331+
23262332
method scrollBy : number_t -> number_t -> unit meth
23272333

23282334
method sessionStorage : storage t optdef readonly_prop

lib/js_of_ocaml/dom_html.mli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,8 +2165,14 @@ class type window = object
21652165

21662166
method blur : unit meth
21672167

2168+
method scrollX : number_t readonly_prop
2169+
2170+
method scrollY : number_t readonly_prop
2171+
21682172
method scroll : number_t -> number_t -> unit meth
21692173

2174+
method scrollTo : number_t -> number_t -> unit meth
2175+
21702176
method scrollBy : number_t -> number_t -> unit meth
21712177

21722178
method sessionStorage : storage t optdef readonly_prop

0 commit comments

Comments
 (0)