1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

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 10:40:23 +01:00 committed by Jeremy Ruston
parent 6a96cd1284
commit 4bc592c9e8

View File

@ -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;