mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
Monotone-Parent: 72e9d69b6c2222ec4be3ace83edc64181859f8fe
Monotone-Revision: 4962ab3aba4ec12e6e80cec90be3bb7824bb7b56 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-30T21:41:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -23,7 +23,7 @@ var SOGODragAndDropSourceInterface = {
|
||||
}
|
||||
},
|
||||
dragGestureMouseUpHandler: function (event) {
|
||||
log("mouseup");
|
||||
// log("mouseup");
|
||||
document._currentMouseGestureObject._removeGestureHandlers();
|
||||
},
|
||||
dragGestureMouseMoveHandler: function (event) {
|
||||
@@ -160,13 +160,19 @@ document.DNDManager = {
|
||||
document.DNDManager.destinationExit, false);
|
||||
if (operation.destination == event.target) {
|
||||
// log("drag / drop: " + operation.source + " to " + operation.destination);
|
||||
if (operation.destination.dndExit)
|
||||
event.target.dndExit();
|
||||
if (operation.destination.dndExit) {
|
||||
// log ("destination.dndExit...");
|
||||
operation.destination.dndExit();
|
||||
}
|
||||
if (operation.destination.dndDrop) {
|
||||
// log ("destination.dndDrop...");
|
||||
var data = null;
|
||||
// log ("optype: " + operation.type);
|
||||
if (operation.source.dndDataForType)
|
||||
data = operation.source.dndDataForType(operation.type);
|
||||
var result = event.target.dndDrop(data);
|
||||
// log ("data: " + data);
|
||||
var result = operation.destination.dndDrop(data);
|
||||
// log ("result: " + result);
|
||||
if (operation.ghost) {
|
||||
if (result)
|
||||
operation.bustGhost();
|
||||
|
||||
Reference in New Issue
Block a user