Skip to content

Commit

Permalink
fix: drag region BrowserView calculations on macOS (#28984)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 5, 2021
1 parent 71c2481 commit e379b45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shell/browser/native_browser_view_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,7 @@ - (void)drawDebugRect:(NSRect)aRect {

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,
Expand Down

0 comments on commit e379b45

Please sign in to comment.