mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 07:48:02 +08:00
Better drag & drop leftPanel
This commit is contained in:
parent
274ebd6855
commit
7ef79635a6
1 changed files with 4 additions and 7 deletions
11
dev/External/User/ko.js
vendored
11
dev/External/User/ko.js
vendored
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue