summaryrefslogtreecommitdiff
path: root/ext/fg/js/frame-offset-forwarder.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-22 14:11:43 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-05 19:57:37 +0300
commit9f9ea1d5fb9f383992523a2a9a8a02259ced838e (patch)
treef28de9a694be800cae06bfd5a1f7dcc3f888aa19 /ext/fg/js/frame-offset-forwarder.js
parentfa65ab351293fa6af882479e0fad6aaca3152569 (diff)
throttle frame offset getting
Diffstat (limited to 'ext/fg/js/frame-offset-forwarder.js')
-rw-r--r--ext/fg/js/frame-offset-forwarder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/frame-offset-forwarder.js b/ext/fg/js/frame-offset-forwarder.js
index 38fc0b03..c32c2ec1 100644
--- a/ext/fg/js/frame-offset-forwarder.js
+++ b/ext/fg/js/frame-offset-forwarder.js
@@ -41,7 +41,7 @@ class FrameOffsetForwarder {
this._started = true;
}
- async applyOffset(x, y) {
+ async getOffset() {
const uniqueId = yomichan.generateId(16);
const frameOffsetPromise = yomichan.getTemporaryListenerResult(
@@ -58,7 +58,7 @@ class FrameOffsetForwarder {
action: 'getFrameOffset',
params: {
uniqueId,
- offset: [x, y]
+ offset: [0, 0]
}
}, '*');