aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom')
-rw-r--r--ext/js/dom/scroll-element.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/dom/scroll-element.js b/ext/js/dom/scroll-element.js
index 173ce499..7db3026a 100644
--- a/ext/js/dom/scroll-element.js
+++ b/ext/js/dom/scroll-element.js
@@ -68,6 +68,10 @@ class ScrollElement {
this._animationRequestId = null;
}
+ getRect() {
+ return this._node.getBoundingClientRect();
+ }
+
// Private
_onAnimationFrame(time) {