diff options
Diffstat (limited to 'ext/util.js')
-rw-r--r-- | ext/util.js | 4 |
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; } |