aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index f1a0be9f..280a7dca 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -100,9 +100,11 @@ class Driver {
}
onMouseDown(e) {
+ this.lastMousePos = {x: e.clientX, y: e.clientY};
+ this.popupTimerClear();
+
if (this.popup.visible()) {
- const selection = window.getSelection();
- selection.removeAllRanges();
+ this.hidePopup();
}
}