我使用Chrome,Safari和Firefox进行GWT 2.4.0原生拖放操作。但是在IE9上,拖动启动事件不会触发,光标似乎进入文本选择模式。
有什么想法吗?
public class BaseFlowComponent extends Composite {
public BaseFlowComponent() {
this.initWidget(panel);
this.addDomHandler(new DragStartHandler() {
public void onDragStart(DragStartEvent event) {
event.setData("text", componentName);
event.getDataTransfer().setDragImage(getElement(), 10, 10);
}
}, DragStartEvent.getType());
this.getElement().setDraggable(Element.DRAGGABLE_TRUE);
}
}
答案 0 :(得分:1)
自http://code.google.com/p/google-web-toolkit/source/detail?spec=svn10138&r=10138以来,此问题已修复。
GWT小组测试网址 - http://gwt-cloudtasks.appspot.com
确保您在托管和生产模式下以相同的浏览器和文档模式运行示例代码。还要记住GWT团队的建议。 https://developers.google.com/web-toolkit/doc/latest/DevGuideIE9
确保IE9未在某些IE8 / IE7兼容模式下运行。
对于IE7和IE8,该功能被禁用 参考 - http://code.google.com/p/google-web-toolkit/source/detail?spec=svn10138&r=10138 https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/0MkjaHsVfO4