提交 dee27453 编写于 作者: I isidor

empty view: drag and drop polish

上级 27d0fc22
......@@ -84,6 +84,12 @@ export class EmptyView extends ViewletPanel {
this.disposables.push(DOM.addDisposableListener(container, DOM.EventType.DRAG_LEAVE, () => {
container.style.backgroundColor = this.themeService.getTheme().getColor(SIDE_BAR_BACKGROUND).toString();
}));
this.disposables.push(DOM.addDisposableListener(container, DOM.EventType.DROP, () => {
container.style.backgroundColor = this.themeService.getTheme().getColor(SIDE_BAR_BACKGROUND).toString();
}));
this.disposables.push(DOM.addDisposableListener(container, DOM.EventType.DRAG_OVER, (e: DragEvent) => {
e.dataTransfer.dropEffect = 'copy';
}));
this.setLabels();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册