From: Alexander Ebert Date: Tue, 11 Oct 2016 11:58:51 +0000 (+0200) Subject: Fixed drag&drop blocking link dragging X-Git-Tag: 3.0.0_Beta_3~50^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1513b17fbfd2fd763dd02ca9f4a42ed291437678;p=GitHub%2FWoltLab%2FWCF.git Fixed drag&drop blocking link dragging --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js index 72bc07d224..96320437d2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js @@ -187,8 +187,7 @@ define(['Dictionary', 'EventHandler', 'Language'], function (Dictionary, EventHa * @protected */ _setup: function () { - // discard garbage events - window.addEventListener('dragstart', function (event) { event.preventDefault(); }); + // discard garbage event window.addEventListener('dragend', function (event) { event.preventDefault(); }); window.addEventListener('dragover', this._dragOver.bind(this));