Skip to content

Commit

Permalink
fix: drag region BrowserView calculations on macOS (#29019)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed May 6, 2021
1 parent 546cb98 commit 6fd4bb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shell/browser/native_browser_view_mac.mm
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 6fd4bb2

Please sign in to comment.