add api control of file drop handling behavior
This commit is contained in:
parent
3e2971274d
commit
1fc1308042
2 changed files with 9 additions and 1 deletions
|
|
@ -1004,6 +1004,13 @@
|
|||
|
||||
let files = evt.dataTransfer.files;
|
||||
|
||||
switch (API.feature.drop_group) {
|
||||
case true:
|
||||
return API.platform.load_files(files, []);
|
||||
case false:
|
||||
return API.platform.load_files(files, undefined);
|
||||
}
|
||||
|
||||
function ck_group() {
|
||||
if (files.length === 1) {
|
||||
API.platform.load_files(files);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@
|
|||
|
||||
const feature = {
|
||||
seed: true,
|
||||
controls: true
|
||||
controls: true,
|
||||
drop_group: undefined
|
||||
};
|
||||
|
||||
const selection = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue