mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: ensure dragging works again after emitting contextmenu event (#48199)
This commit is contained in:
@@ -142,6 +142,7 @@ bool ElectronDesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) {
|
||||
if (prevent_default) {
|
||||
electron::api::WebContents::SetDisableDraggableRegions(true);
|
||||
views::DesktopWindowTreeHostWin::HandleMouseEvent(event);
|
||||
electron::api::WebContents::SetDisableDraggableRegions(false);
|
||||
}
|
||||
return prevent_default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user