mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-22 21:14:55 +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 ko from 'ko';
|
||||||
import { HtmlEditor } from 'Common/Html';
|
import { HtmlEditor } from 'Common/Html';
|
||||||
import { timeToNode } from 'Common/Translator';
|
import { timeToNode } from 'Common/Translator';
|
||||||
import { doc, elementById, addEventsListeners, dropdowns } from 'Common/Globals';
|
import { doc, elementById, addEventsListeners, dropdowns, leftPanelDisabled } from 'Common/Globals';
|
||||||
import { dropdownsDetectVisibility, moveAction } from 'Common/UtilsUser';
|
import { dropdownsDetectVisibility } from 'Common/UtilsUser';
|
||||||
import { EmailAddressesComponent } from 'Component/EmailAddresses';
|
import { EmailAddressesComponent } from 'Component/EmailAddresses';
|
||||||
import { ThemeStore } from 'Stores/Theme';
|
import { ThemeStore } from 'Stores/Theme';
|
||||||
import { moveMessagesToFolder, dropFilesInFolder } from 'Common/Folders';
|
import { moveMessagesToFolder, dropFilesInFolder } from 'Common/Folders';
|
||||||
|
@ -145,16 +145,13 @@ Object.assign(ko.bindingHandlers, {
|
||||||
// Remove the Chrome visibility
|
// Remove the Chrome visibility
|
||||||
dragImage.style.cssText = '';
|
dragImage.style.cssText = '';
|
||||||
|
|
||||||
moveAction(true);
|
leftPanelDisabled(false);
|
||||||
} else {
|
} else {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
element.addEventListener("dragend", () => {
|
element.addEventListener("dragend", () => dragData = null);
|
||||||
dragData = null;
|
|
||||||
moveAction(false);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue