From 3f1b65544a8e0bc40d49f5e0846470344ad74938 Mon Sep 17 00:00:00 2001 From: Anil Anar Date: Sun, 15 Jul 2018 19:35:12 +0200 Subject: [PATCH] Add moveBy to Window --- src/main/scala/org/scalajs/dom/raw/lib.scala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/scala/org/scalajs/dom/raw/lib.scala b/src/main/scala/org/scalajs/dom/raw/lib.scala index 769126d42..74826d1b7 100644 --- a/src/main/scala/org/scalajs/dom/raw/lib.scala +++ b/src/main/scala/org/scalajs/dom/raw/lib.scala @@ -3718,6 +3718,13 @@ class CanvasRenderingContext2D extends js.Object { */ def moveTo(x: Double, y: Double): Unit = js.native + /** + * Moves the current window by a specified amount. + * + * MDN + */ + def moveBy(deltaX: Double, deltaY: Double): Unit = js.native + /** * Returns an ImageData object representing the underlying pixel data for the area of * the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh