Skip to content

Commit 6349543

Browse files
ddnexusmarijnh
authored andcommitted
fix for erratic scrolling behaviour when typing
1 parent 8bf1962 commit 6349543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ var CodeMirror = (function() {
813813
function updateCursor() {
814814
var head = sel.inverted ? sel.from : sel.to;
815815
var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lineHeight() + "px";
816-
inputDiv.style.top = y; inputDiv.style.left = x;
816+
inputDiv.style.top = y;
817817
if (posEq(sel.from, sel.to)) {
818818
cursor.style.top = y; cursor.style.left = x;
819819
cursor.style.display = "";

0 commit comments

Comments
 (0)