Skip to content
Snippets Groups Projects
Commit cd027889 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

conference: change layout on click

Change-Id: I5827b88161fb6e52c70e1c2ccea540e18bce6d2f
parent 7395f7fc
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,20 @@ CGFloat const controlSize = 40;
[super mouseExited:theEvent];
}
-(void)mouseUp:(NSEvent *)theEvent
{
[super mouseUp:theEvent];
if ([theEvent clickCount] == 1) {
[self performSelector:@selector(singleTap) withObject:nil afterDelay:[NSEvent doubleClickInterval]];
} else if (theEvent.clickCount == 2) {
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(singleTap) object:nil];
}
}
- (void)singleTap {
[self.delegate maximizeParticipant:self.participant.uri active: self.participant.active];
}
- (void)ensureTrackingArea {
if (trackingArea == nil) {
trackingArea = [[NSTrackingArea alloc] initWithRect:NSZeroRect
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment