Commits

Domizio Demichelis committed 1f18216

fix for erratic scrolling behaviour when typing

Comments (0)

Files changed (1)

lib/codemirror.js

     function updateCursor() {
       var head = sel.inverted ? sel.from : sel.to;
       var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lineHeight() + "px";
-      inputDiv.style.top = y; inputDiv.style.left = x;
+      inputDiv.style.top = y;
       if (posEq(sel.from, sel.to)) {
         cursor.style.top = y; cursor.style.left = x;
         cursor.style.display = "";