From e1c3613da0189c9c234d59d4474cfc3f958af79d Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Mon, 27 May 2024 10:49:54 -0400 Subject: Clear mouse position on popup close (#997) --- ext/js/language/text-scanner.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/js/language') diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js index 17809300..0d8e49b1 100644 --- a/ext/js/language/text-scanner.js +++ b/ext/js/language/text-scanner.js @@ -364,6 +364,11 @@ export class TextScanner extends EventDispatcher { } } + /** */ + clearMousePosition() { + this._lastMouseMove = null; + } + /** * @returns {?import('text-source').TextSource} */ -- cgit v1.2.3