From d77319e328137743bb0b024abba2d562017955e2 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 28 Mar 2016 13:00:48 -0700 Subject: WIP --- ext/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/util.js') 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; } -- cgit v1.2.3