summaryrefslogtreecommitdiff
path: root/content.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-19 19:32:35 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-19 19:32:35 -0700
commit8f24c5ff6a3bcbb4b5e1bbe129c2365691554827 (patch)
tree602221dfd48db2931860c7d09e58c552540448b0 /content.js
parent826bf963119ce70e1498505c2b930716af7a249d (diff)
Tests
Diffstat (limited to 'content.js')
-rw-r--r--content.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/content.js b/content.js
index d87589ac..f2aa49a2 100644
--- a/content.js
+++ b/content.js
@@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
function getRangeAtCursor(e, lookAhead) {
const range = document.caretRangeFromPoint(e.clientX, e.clientY);
if (range === null) {
@@ -52,4 +51,4 @@ function onMouseDown(e) {
}
-window.addEventListener('mousemove', onMouseMove, false);
+window.addEventListener('mousedown', onMouseDown, false);