MiMo42 / MMTabBarView

A Mac OS X tab bar view that works on 10.9+ with Xcode 9.3+. Pull requests welcomed.
http://mimo42.github.com/MMTabBarView/
243 stars 79 forks source link

The mouseHovered state is not valid after closing a tab #10

Closed fujix closed 10 years ago

fujix commented 11 years ago

When closing a tab with the close button on the tab, the next (right-side) tab will be moved to the place where the closed tab was. But the close button of the next tab is hidden, because of mouseHovered state is not valid.

"Only show close on hover" was ON. Tested on OS X 10.8.4.

How do you think about to add this code to the end of -(void)updateTrackingAreas method of MMRolloverButton class?

if ([self mouse:mouseLocation inRect:[self bounds]]) {
    [[self cell] mouseEntered:nil];
}
MiMo42 commented 10 years ago

Has been fixed.