mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: drag region BrowserView calculations on macOS (#29017)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -347,9 +347,7 @@ void NativeBrowserViewMac::UpdateDraggableRegions(
|
||||
|
||||
std::vector<gfx::Rect> drag_exclude_rects;
|
||||
if (draggable_regions_.empty()) {
|
||||
const auto bounds = GetBounds();
|
||||
drag_exclude_rects.emplace_back(bounds.x(), bounds.y(), webViewWidth,
|
||||
webViewHeight);
|
||||
drag_exclude_rects.emplace_back(0, 0, webViewWidth, webViewHeight);
|
||||
} else {
|
||||
drag_exclude_rects = CalculateNonDraggableRegions(
|
||||
DraggableRegionsToSkRegion(draggable_regions_), webViewWidth,
|
||||
|
||||
Reference in New Issue
Block a user