marijnh/CodeMirror — pull request #1007 by njx (2012-11-27 20:48:34+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.