fix: drag region BrowserView calculations on macOS (#28984)
This commit is contained in:
parent
71c248176b
commit
e379b455c9
1 changed files with 1 additions and 3 deletions
|
@ -347,9 +347,7 @@ void NativeBrowserViewMac::UpdateDraggableRegions(
|
||||||
|
|
||||||
std::vector<gfx::Rect> drag_exclude_rects;
|
std::vector<gfx::Rect> drag_exclude_rects;
|
||||||
if (draggable_regions_.empty()) {
|
if (draggable_regions_.empty()) {
|
||||||
const auto bounds = GetBounds();
|
drag_exclude_rects.emplace_back(0, 0, webViewWidth, webViewHeight);
|
||||||
drag_exclude_rects.emplace_back(bounds.x(), bounds.y(), webViewWidth,
|
|
||||||
webViewHeight);
|
|
||||||
} else {
|
} else {
|
||||||
drag_exclude_rects = CalculateNonDraggableRegions(
|
drag_exclude_rects = CalculateNonDraggableRegions(
|
||||||
DraggableRegionsToSkRegion(draggable_regions_), webViewWidth,
|
DraggableRegionsToSkRegion(draggable_regions_), webViewWidth,
|
||||||
|
|
Loading…
Reference in a new issue