mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: draggable regions shouldn't capture clicks on frames windows (#37594)
This commit is contained in:
@@ -1988,6 +1988,9 @@ void WebContents::MessageHost(const std::string& channel,
|
||||
|
||||
void WebContents::UpdateDraggableRegions(
|
||||
std::vector<mojom::DraggableRegionPtr> regions) {
|
||||
if (owner_window() && owner_window()->has_frame())
|
||||
return;
|
||||
|
||||
draggable_region_ = DraggableRegionsToSkRegion(regions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user