mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
a possible fix for dragging
This commit is contained in:
@@ -593,7 +593,8 @@ void OffScreenRenderWidgetHostView::ClearCompositorFrame() {
|
||||
}
|
||||
|
||||
void OffScreenRenderWidgetHostView::InitAsPopup(
|
||||
content::RenderWidgetHostView *, const gfx::Rect &) {
|
||||
content::RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) {
|
||||
printf("popup, parent: %p\n", parent_host_view);
|
||||
}
|
||||
|
||||
void OffScreenRenderWidgetHostView::InitAsFullscreen(
|
||||
|
||||
@@ -116,6 +116,8 @@ void OffScreenWebContentsView::StartDragging(
|
||||
const gfx::ImageSkia& image,
|
||||
const gfx::Vector2d& image_offset,
|
||||
const content::DragEventSourceInfo& event_info) {
|
||||
if (web_contents_)
|
||||
web_contents_->SystemDragEnded();
|
||||
}
|
||||
|
||||
void OffScreenWebContentsView::UpdateDragCursor(
|
||||
|
||||
Reference in New Issue
Block a user