From 55a7e7f9a8bf50a4891f2e4d0031b968aa0c25b0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 30 Sep 2021 19:31:45 -0400 Subject: Hotkey dictionary navigation fix (#1970) * Add getRect function to ScrollElement * Update _focusEntry to take a definition index * Update behaviour of (next|previous)EntryDifferentDictionary --- ext/js/dom/scroll-element.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/js/dom') 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) { -- cgit v1.2.3