diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-09-30 19:31:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 19:31:45 -0400 |
commit | 55a7e7f9a8bf50a4891f2e4d0031b968aa0c25b0 (patch) | |
tree | 9e22b839a0829e7747b0101d5884ade24bf2bb84 /ext/js/dom | |
parent | b0f6c41f5dc7f498f2948f846dd273bcb1bc1f0b (diff) |
Hotkey dictionary navigation fix (#1970)
* Add getRect function to ScrollElement
* Update _focusEntry to take a definition index
* Update behaviour of (next|previous)EntryDifferentDictionary
Diffstat (limited to 'ext/js/dom')
-rw-r--r-- | ext/js/dom/scroll-element.js | 4 |
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) { |