Merge pull request #1274 from ONLYOFFICE/fix/drag-and-drop
Fix/drag and drop
This commit is contained in:
commit
e743fb7412
|
@ -177,9 +177,14 @@ define([
|
|||
lockDrag = true;
|
||||
}
|
||||
});
|
||||
if (this.bar.selectTabs.length === this.bar.tabs.length || this.bar.tabs.length === 1 || this.bar.isEditFormula) {
|
||||
if (((this.bar.selectTabs.length === this.bar.tabs.length || this.bar.tabs.length === 1) && !(e.ctrlKey || e.metaKey)) || this.bar.isEditFormula) {
|
||||
lockDrag = true;
|
||||
}
|
||||
// move last selected sheet if all sheets are selected
|
||||
if (this.bar.selectTabs.length === this.bar.tabs.length && this.bar.tabs.length > 1 && !e.ctrlKey && !e.metaKey) {
|
||||
lockDrag = false;
|
||||
this.bar.$el.find('ul > li.selected').removeClass('selected');
|
||||
}
|
||||
this.bar.$el.find('ul > li > span').attr('draggable', !lockDrag);
|
||||
if (!lockDrag && !e.ctrlKey && !e.metaKey) {
|
||||
tab.changeState();
|
||||
|
|
Loading…
Reference in a new issue