Skip to content

Commit

Permalink
Revert horizontal align compensation in onScrollWheel again
Browse files Browse the repository at this point in the history
Issue #986
  • Loading branch information
marijnh committed Nov 21, 2012
1 parent 2712372 commit 846163a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/codemirror.js
Expand Up @@ -1566,10 +1566,6 @@ window.CodeMirror = (function() {
}
updateDisplay(cm, [], {top: top, bottom: bot});
}
if (dx && wheelPixelsPerUnit != null) {
var target = Math.max(0, Math.min(scroll.scrollWidth - scroll.clientWidth, dx * wheelPixelsPerUnit + scroll.scrollLeft));
if (target != scroll.scrollLeft) alignHorizontally(cm.display, target);
}
if (wheelSamples < 20) {
if (wheelStartX == null) {
wheelStartX = scroll.scrollLeft; wheelStartY = scroll.scrollTop;
Expand Down

0 comments on commit 846163a

Please sign in to comment.