Better drag & drop leftPanel

This commit is contained in:
the-djmaze 2022-11-22 15:28:07 +01:00
parent 274ebd6855
commit 7ef79635a6

View file

@ -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);
}
},