diff options
Diffstat (limited to 'chrome')
| -rw-r--r-- | chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm index e34a359..642ca64 100644 --- a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm +++ b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm @@ -424,7 +424,7 @@ const float kRightEdgeOffset = 25; [[NSViewAnimation alloc] initWithViewAnimations:[NSArray arrayWithObjects:dict, nil]]; [animation gtm_setDuration:duration - eventMask:NSLeftMouseUpMask]; + eventMask:NSLeftMouseUpMask]; [animation setDelegate:self]; [animation startAnimation]; return animation; @@ -507,6 +507,8 @@ const float kRightEdgeOffset = 25; NSView* view = [self view]; NSRect frame = [view frame]; float x = [self findBarHorizontalPosition]; + if (frame.origin.x == x) + return; if (animate) { [moveAnimation_ stopAnimation]; |
