marijnh/CodeMirror2 — pull request #563 by njx (2012-06-05 23:08:39+00:00)
Title: Move drag handling to scroller to fix drag-and-drop on WebKit/Firefox

Fixes the issue reported in this forum thread: https://groups.google.com/forum/?fromgroups#!topic/codemirror/XA2N040PzuQ (see last few messages)

My scrolling changes broke drag-and-drop in WebKit and Firefox due to the setting of "pointer-events: none" on the lineSpace (which was necessary to make throw scrolling work properly in Safari). To fix this, we now handle drag-and-drop on the scroller instead of the lineSpace.

The behavior after this fix appears to be the same as it was in v2.25:

* Chrome: works
* Firefox: works, but mouse cursor does not change to drag cursor
* Safari: works, but drag proxy looks very weird, like a partial copy of the lineSpace with a blank area at the bottom (is this a known issue? confirmed it happens in 2.25)
* IE9: works
* IE7/8: no drag/drop

Let me know if that doesn't match your expectation for where and how drag/drop should be working.