Many thanks for your additional suggestions.
 
I will give them all a try, but for the time being I've decided that native 
drag and drop is a long way off useable, so I've written my own 
implementation instead.
 
Helen

On Thursday, March 21, 2013 10:42:39 PM UTC, Andrea Boscolo wrote:

> Check if DragDropEventBase.isSupported() and if not, stop trying :D 
> According to [1] is not supported by ie6 and ie8 and there is a 'maybe' for 
> everything else.
>
> I can't see where the problem could be, you are doing the right things:
> - set the element draggable;
> - add a dragstarthandler to the element and use setData(...) in it;
> - add a dragoverhandler on the element target;
> - add a drophandler on the element target, use preventDefault() and 
> consume the data with getData() (you are not doing that tough, hence try 
> it).
> See [2] from slide 54.
>
> Then I'd try to use the native handlers (e.g, addDropHandler() and so on, 
> instead of addDomHandler()) if supported by the widget. Or change the 
> target widget. Also, as suggested in the commit [3], try to select the text 
> before start to drag.
>
> Can't say anything else, at the moment.
>
> [1] 
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/event/dom/DragEvent.gwt.xml
> [2] 
> http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/it//events/io/2011/static/presofiles/gwt_html5_a_web_develops_dream.pdf
>  
> [3] http://gwt-code-reviews.appspot.com/1420811
>

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


Reply via email to