[SSE] Fix bug when moving tabs (do not allow move tabs when pressed shift, ctrl) (#297)
This commit is contained in:
parent
5847aeaac3
commit
760fa32c88
|
@ -233,9 +233,10 @@ define([
|
||||||
mousedown: $.proxy(function (e) {
|
mousedown: $.proxy(function (e) {
|
||||||
if (this.bar.options.draggable && !_.isUndefined(dragHelper) && (3 !== e.which)) {
|
if (this.bar.options.draggable && !_.isUndefined(dragHelper) && (3 !== e.which)) {
|
||||||
if (!tab.isLockTheDrag) {
|
if (!tab.isLockTheDrag) {
|
||||||
if (!e.ctrlKey && !e.metaKey && !e.shiftKey)
|
if (!e.ctrlKey && !e.metaKey && !e.shiftKey) {
|
||||||
tab.changeState();
|
tab.changeState();
|
||||||
dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs);
|
dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, this)
|
}, this)
|
||||||
|
|
Loading…
Reference in a new issue