diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-04-03 22:52:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 22:52:53 -0400 |
commit | e5b53bb238e59b1cd6371c0379d6171a3e1e68fa (patch) | |
tree | 9b547a78dc492ef6f4dd75a3def0d56f52f19262 /ext/js/app | |
parent | 77c4d135c788c5e3606af4519b5f9bb5010f6fed (diff) |
Hide popup on cursor exit (#2109)
* Update phrasing
* Add new options
* Add settings
* Implement
Diffstat (limited to 'ext/js/app')
-rw-r--r-- | ext/js/app/frontend.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index 0dd58735..102cd299 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -343,6 +343,10 @@ class Frontend { _onPopupFramePointerOut() { this._isPointerOverPopup = false; + const scanningOptions = this._options.scanning; + if (scanningOptions.hidePopupOnCursorExit) { + this._clearSelectionDelayed(scanningOptions.hidePopupOnCursorExitDelay, false); + } } _clearSelection(passive) { |