Commit c383f891 authored by edchin's avatar edchin Committed by Commit Bot

[ios] Fix oversized hover effect on NTP omnibox

The NTP omnibox pointer hover effect looks slightly oversized.
This CL reduces it by 1 point.

Bug: 1073961
Change-Id: Idd6daa3952cf4521083c2110a6d6b5645157f6b5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2203018Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768985}
parent 83b50a34
......@@ -628,9 +628,11 @@ using base::UserMetricsAction;
- (UIPointerStyle*)pointerInteraction:(UIPointerInteraction*)interaction
styleForRegion:(UIPointerRegion*)region
API_AVAILABLE(ios(13.4)) {
UIBezierPath* path = [UIBezierPath
bezierPathWithRoundedRect:interaction.view.bounds
cornerRadius:interaction.view.bounds.size.height];
// Without this, the hover effect looks slightly oversized.
CGRect rect = CGRectInset(interaction.view.bounds, 1, 1);
UIBezierPath* path =
[UIBezierPath bezierPathWithRoundedRect:rect
cornerRadius:rect.size.height];
UIPreviewParameters* parameters = [[UIPreviewParameters alloc] init];
parameters.visiblePath = path;
UITargetedPreview* preview =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment