summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/content.js b/content.js
index 9fd77e49..d87589ac 100644
--- a/content.js
+++ b/content.js
@@ -35,6 +35,7 @@ function getRangeAtCursor(e, lookAhead) {
return range;
}
+
function onMouseDown(e) {
const range = getRangeAtCursor(e, 20);
if (range === null) {
@@ -51,4 +52,4 @@ function onMouseDown(e) {
}
-window.addEventListener('mousedown', onMouseDown, false);
+window.addEventListener('mousemove', onMouseMove, false);