From 26b9ae42925d761f18e890df918cf250f803122a Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 19 Feb 2024 20:16:50 +0100 Subject: [PATCH] jso apis: add Window.scrollX Fix #886 --- jso/apis/src/main/java/org/teavm/jso/browser/Window.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java index 479f3df4a..f06475115 100644 --- a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java +++ b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java @@ -65,6 +65,9 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv @JSProperty public abstract int getOuterHeight(); + @JSProperty + public abstract int getScrollX(); + @JSProperty public abstract int getScrollY();