File tree 1 file changed +20
-0
lines changed
src/main/scala/org/scalajs/dom/raw
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2718,6 +2718,26 @@ class Window
2718
2718
* MDN
2719
2719
*/
2720
2720
def resizeBy (deltaX : Int , deltaY : Int ): Unit = js.native
2721
+
2722
+ /**
2723
+ * The read-only scrollX property of the Window interface returns the number
2724
+ * of pixels that the document is currently scrolled horizontally. This value
2725
+ * is subpixel precise in modern browsers, meaning that it isn't necessarily
2726
+ * a whole number. You can get the number of pixels the document is scrolled
2727
+ * vertically from the scrollY property.
2728
+ *
2729
+ * MDN
2730
+ */
2731
+ def scrollX : Double = js.native
2732
+
2733
+ /**
2734
+ * The read-only scrollY property of the Window interface returns the number
2735
+ * of pixels that the document is currently scrolled vertically. This value
2736
+ * is subpixel precise in modern browsers, meaning that it isn't necessarily
2737
+ * a whole number. You can get the number of pixels the document is scrolled
2738
+ * horizontally from the scrollX property.
2739
+ */
2740
+ def scrollY : Double = js.native
2721
2741
}
2722
2742
2723
2743
/**
You can’t perform that action at this time.
0 commit comments