Hey All,

I've been trying to implement support for HTML5 drag 'n' drop events
in GWT 2.0.3. Thus far i've managed to override the default DOMImpl
with a custom class that supports the events:

i've overridden :

  public native int eventGetTypeInt(String eventType) to include...
    // other events
    case "drop": return 0x100000;
    case "dragenter": return 0x200000;
    case "dragexit": return 0x400000;
    case "dragover": return 0x800000;



and:


protected native void sinkEventsImpl(Element elem, int bits) {
   // other sinkers
 if (chMask & 0x100000) elem.ondrop = (bits & 0x100000) ?
 
@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
null;
    if (chMask & 0x200000) elem.ondragenter = (bits & 0x200000) ?
 
@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
null;
    if (chMask & 0x400000) elem.ondragexit = (bits & 0x400000) ?
 
@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
null;
    if (chMask & 0x800000) elem.ondragover = (bits & 0x800000) ?
 
@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
null;




As well as making Events and their associated handlers for these
events. My problem is that in the browser (FF 3.6), dravover,
dragexit, dragenter work (the events are triggered at least), but
**drop** does not.
Has anybody had any luck achieving this, or care to share an existing
implementation? Is there anything you notice immediately that i'm
doing wrong?


Harry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to