diff --git a/dev/External/User/ko.js b/dev/External/User/ko.js index 8629fff9b..c20c06af9 100644 --- a/dev/External/User/ko.js +++ b/dev/External/User/ko.js @@ -2,8 +2,8 @@ import 'External/ko'; import ko from 'ko'; import { HtmlEditor } from 'Common/Html'; import { timeToNode } from 'Common/Translator'; -import { doc, elementById, addEventsListeners, dropdowns } from 'Common/Globals'; -import { dropdownsDetectVisibility, moveAction } from 'Common/UtilsUser'; +import { doc, elementById, addEventsListeners, dropdowns, leftPanelDisabled } from 'Common/Globals'; +import { dropdownsDetectVisibility } from 'Common/UtilsUser'; import { EmailAddressesComponent } from 'Component/EmailAddresses'; import { ThemeStore } from 'Stores/Theme'; import { moveMessagesToFolder, dropFilesInFolder } from 'Common/Folders'; @@ -145,16 +145,13 @@ Object.assign(ko.bindingHandlers, { // Remove the Chrome visibility dragImage.style.cssText = ''; - moveAction(true); + leftPanelDisabled(false); } else { e.preventDefault(); } }, false); - element.addEventListener("dragend", () => { - dragData = null; - moveAction(false); - }); + element.addEventListener("dragend", () => dragData = null); } },