Skip to content

Commit

Permalink
Revert "slightly delay triggering the action in CPControl performClic…
Browse files Browse the repository at this point in the history
…k: to make sure the click is always visible"

This reverts commit eaf4fa2.
  • Loading branch information
Ross Boucher committed Jun 16, 2010
1 parent f2c01cb commit 19d5431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppKit/CPControl.j
Expand Up @@ -337,13 +337,13 @@ var CPControlBlackColor = [CPColor blackColor];

[self highlight:YES];
[self setState:[self nextState]];
[self sendAction:[self action] to:[self target]];

[CPTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(unhighlightButtonTimerDidFinish:) userInfo:nil repeats:NO];
}

- (void)unhighlightButtonTimerDidFinish:(id)sender
{
[self sendAction:[self action] to:[self target]];
[self highlight:NO];
}

Expand Down

0 comments on commit 19d5431

Please sign in to comment.