From 4eef234736b61db4ba8f7be148c0fee31f4a0072 Mon Sep 17 00:00:00 2001 From: cacaodev Date: Wed, 30 Dec 2009 19:22:30 +0100 Subject: [PATCH] Fix a bug where drop was always failing in webkit nighties --- AppKit/Platform/DOM/CPPlatformWindow+DOM.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j index a56853597..a72a1afb8 100644 --- a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j +++ b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j @@ -502,7 +502,8 @@ var supportsNativeDragAndDrop = [CPPlatform supportsDragAndDrop]; var draggingOffset = [dragServer draggingOffset]; aDOMEvent.dataTransfer.setDragImage(DOMDragElement, draggingOffset.width, draggingOffset.height); - + aDOMEvent.dataTransfer.effectAllowed = "all"; + [dragServer draggingStartedInPlatformWindow:self globalLocation:[CPPlatform isBrowser] ? location : _CGPointMake(aDOMEvent.screenX, aDOMEvent.screenY)]; }