summaryrefslogtreecommitdiff
path: root/content.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-19 19:05:51 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-19 19:05:51 -0700
commit826bf963119ce70e1498505c2b930716af7a249d (patch)
tree5f946f35cce71733529fc754f89153eb004a1c29 /content.js
parent0eeacbf5c84878d6cdb69f8d889d03ae56d60a48 (diff)
parent81ded4fb78cf32a3d85882708e2f651608100815 (diff)
Merge branch 'master' of https://github.com/FooSoft/yomichan-chrome
Diffstat (limited to 'content.js')
-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);