Skip to content

Commit eab1a55

Browse files
authored
Merge pull request #79 from barijaona/issue63
Fix freeze on Mojave when going full screen window
2 parents 5183e53 + bd9a00e commit eab1a55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

MMTabBarView/MMTabBarView/MMTabBarView.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,20 @@ - (void)viewDidMoveToWindow {
202202
}
203203

204204
- (void)viewWillStartLiveResize {
205+
[super viewWillStartLiveResize];
205206
for (MMAttachedTabBarButton *aButton in self.attachedButtons) {
206207
[aButton.indicator stopAnimation:self];
207208
}
208-
[self setNeedsDisplay:YES];
209209
}
210210

211211
-(void)viewDidEndLiveResize {
212212
for (MMAttachedTabBarButton *aButton in self.attachedButtons) {
213-
[aButton.indicator startAnimation:self];
213+
[aButton.indicator performSelector:@selector(startAnimation:) withObject:nil afterDelay:0.0];
214214
}
215215

216216
[self _checkWindowFrame];
217217
[self update:NO];
218+
[super viewDidEndLiveResize];
218219
}
219220

220221
- (void)resetCursorRects {

0 commit comments

Comments
 (0)