[Webkit-unassigned] [Bug 79171] Metabug for drag and drop issues found by Opera

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 3 19:06:40 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=79171





--- Comment #7 from noel gordon <noel.gordon at gmail.com>  2012-04-03 19:06:40 PST ---
(In reply to comment #6)
> I'll ask for clarification. However, the original IE drag and drop event model is... quirky to say the least. It does not seem intuitive that merely canceling the dragenter/dragover events should be enough to prevent the default action of a *drop*. Given that the original IE model was meant to deal with text and URLs, I think we have some flexibility for improving this.

The original IE model defined dataTransfer.getData(Text|URL|Image|HTML|File).  Quirky and unintuitive is perhaps a matter of opinion; I think it has never been better stated than this [1] ...

"You must cancel the default action for ondragenter and ondragover in order for ondrop to fire. In the case of a div, the default action is not to drop. This can be contrasted with the case of an input type=text element, where the default action is to drop. In order to allow a drag-and-drop action on a div, you must cancel the default action by specifying window.event.returnValue=false in both the ondragenter and ondragover event handlers. Only then will ondrop fire."  

[1] http://msdn.microsoft.com/en-us/library/ms536929(v=vs.85).aspx

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list