summaryrefslogtreecommitdiff
path: root/ext/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-28 13:00:48 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-28 13:00:48 -0700
commitd77319e328137743bb0b024abba2d562017955e2 (patch)
tree1a16d660f5f5a99f7d7c4c6d66b46fc6f0f33fc3 /ext/util.js
parent43d4abf317bb69c936d51a9850314e76923eaee7 (diff)
WIP
Diffstat (limited to 'ext/util.js')
-rw-r--r--ext/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/util.js b/ext/util.js
index 76579cac..8db4f297 100644
--- a/ext/util.js
+++ b/ext/util.js
@@ -17,8 +17,8 @@
*/
-function getRangeAtCursor(e, lookAhead) {
- const range = document.caretRangeFromPoint(e.clientX, e.clientY);
+function getRangeAtPoint(point, lookAhead) {
+ const range = document.caretRangeFromPoint(point.x, point.y);
if (range === null) {
return null;
}