marijnh/CodeMirror2 — Issue #342: scrollTo() method, x & y set the wrong properties
Author: appmo
Created: 2012-01-31 16:48:59+00:00
State: open

The scrollTo() method is currently using x & y the wrong way around.

scrollTo: function(x, y) {
if (x != null) scroller.scrollTop = x;
if (y != null) scroller.scrollLeft = y;
updateDisplay([]);
},

should be:

scrollTo: function(x, y) {
if (x != null) scroller.scrollLeft = x;
if (y != null) scroller.scrollTop = y;
updateDisplay([]);
},