preventDefault drag behaviour inside textarea (#3070)

fixes errors when trying to drag inside textarea while an eventhandler is listening for drag events
This commit is contained in:
BurningTreeC
2017-12-22 09:40:23 +00:00
committed by Jeremy Ruston
parent 6a96cd1284
commit 4bc592c9e8
@@ -3901,6 +3901,7 @@
}
function onDragStart(cm, e) {
e.preventDefault();
if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; }
if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return;