diff --git a/src/domcoords.js b/src/domcoords.js index a95ba94f..3427fe35 100644 --- a/src/domcoords.js +++ b/src/domcoords.js @@ -239,10 +239,6 @@ export function coordsAtPos(view, pos) { let side, rect if (node.nodeType == 3) { if (offset < node.nodeValue.length) { - rect = singleRect(textRange(node, offset, 0), -1) - side = "left" - } - if ((!rect || rect.left == rect.right) && offset) { rect = singleRect(textRange(node, offset - 1, offset), 1) side = "right" }