marijnh/CodeMirror — pull request #1008 by njx (2012-11-27 20:50:00+00:00)
Title: Set currentWheelTarget when manually handling horizontal wheel scroll

For #986. Not sure if you'll like the nested function stylistically (there are only two vars to close over), but since this functionality is very specific to `onScrollWheel()` it seemed to make sense.