Lock cursor on 'move' for collection drag on Windows

This commit is contained in:
Dan Stillman 2013-09-06 16:02:52 -04:00
parent 48a94c6716
commit 261c17ff51

View File

@ -1173,6 +1173,11 @@ Zotero.CollectionTreeCommandController.prototype.onEvent = function(evt)
* Start a drag using HTML 5 Drag and Drop * Start a drag using HTML 5 Drag and Drop
*/ */
Zotero.CollectionTreeView.prototype.onDragStart = function(event) { Zotero.CollectionTreeView.prototype.onDragStart = function(event) {
// See note in LibraryTreeView::_setDropEffect()
if (Zotero.isWin) {
event.dataTransfer.effectAllowed = 'move';
}
var itemGroup = this.itemGroup; var itemGroup = this.itemGroup;
if (!itemGroup.isCollection()) { if (!itemGroup.isCollection()) {
return; return;