Fix dragging attachment onto item on Linux (since 1a49018bd
)
This commit is contained in:
parent
3c5912f68d
commit
1ff1fabb31
2 changed files with 2 additions and 2 deletions
|
@ -2512,7 +2512,7 @@ Zotero.ItemTreeCommandController.prototype.onEvent = function(evt)
|
|||
*/
|
||||
Zotero.ItemTreeView.prototype.onDragStart = function (event) {
|
||||
// See note in LibraryTreeView::_setDropEffect()
|
||||
if (Zotero.isWin) {
|
||||
if (Zotero.isWin || Zotero.isLinux) {
|
||||
event.dataTransfer.effectAllowed = 'copyMove';
|
||||
}
|
||||
|
||||
|
|
|
@ -439,7 +439,7 @@ Zotero.LibraryTreeView.prototype = {
|
|||
// the same action as the dropEffect. This allows the dropEffect setting
|
||||
// (which we use in the tree's canDrop() and drop() to determine the desired
|
||||
// action) to be changed, even if the cursor doesn't reflect the new setting.
|
||||
if (Zotero.isWin) {
|
||||
if (Zotero.isWin || Zotero.isLinux) {
|
||||
event.dataTransfer.effectAllowed = effect;
|
||||
}
|
||||
event.dataTransfer.dropEffect = effect;
|
||||
|
|
Loading…
Add table
Reference in a new issue