play around with the drag overlay
This commit is contained in:
parent
92938acdf0
commit
83e2b3d547
|
@ -51,6 +51,7 @@
|
||||||
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
|
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
|
||||||
NSViewAnimationFadeInEffect, NSViewAnimationEffectKey, nil]]];
|
NSViewAnimationFadeInEffect, NSViewAnimationEffectKey, nil]]];
|
||||||
[fFadeInAnimation setDuration: 0.15];
|
[fFadeInAnimation setDuration: 0.15];
|
||||||
|
[fFadeInAnimation setAnimationBlockingMode: NSAnimationNonblockingThreaded];
|
||||||
|
|
||||||
fFadeOutAnimation = [[NSViewAnimation alloc] initWithViewAnimations: [NSArray arrayWithObject:
|
fFadeOutAnimation = [[NSViewAnimation alloc] initWithViewAnimations: [NSArray arrayWithObject:
|
||||||
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
|
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
|
||||||
|
@ -165,9 +166,6 @@
|
||||||
|
|
||||||
- (void) fadeOut
|
- (void) fadeOut
|
||||||
{
|
{
|
||||||
if ([self alphaValue] <= 0.0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
//stop other animation and set to same progress
|
//stop other animation and set to same progress
|
||||||
if ([fFadeInAnimation isAnimating])
|
if ([fFadeInAnimation isAnimating])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue