mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Fix can't move second-to-last item pane section down (#5187)
This commit is contained in:
parent
4fc7730181
commit
a4db5c9bd2
1 changed files with 6 additions and 2 deletions
|
|
@ -767,10 +767,14 @@
|
|||
return;
|
||||
}
|
||||
let targetWrapper = enabledWrappers[targetIndex];
|
||||
let actualIndex;
|
||||
if (targetWrapper) {
|
||||
// Insert at the index of the previous wrapper
|
||||
this.changePaneOrder(paneID, this._wrappers.indexOf(targetWrapper));
|
||||
actualIndex = this._wrappers.indexOf(targetWrapper);
|
||||
} else {
|
||||
actualIndex = this._wrappers.length;
|
||||
}
|
||||
// Insert at the index of the previous wrapper
|
||||
this.changePaneOrder(paneID, actualIndex);
|
||||
}
|
||||
|
||||
handleButtonDragStart = (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue