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:
Wolfgang Sourdeau
2007-01-30 21:41:24 +00:00
parent d285f08eff
commit 829f96f301
4 changed files with 59 additions and 45 deletions
+10 -4
View File
@@ -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();