improved: animation

This commit is contained in:
daboe01 committed 2026-01-27 19:46:49 +01:00
1 parent 01fc279709
commit 1a7b7054fb
1 file changed
+3 -4
+3 -4
View File
@@ -2246,10 +2246,9 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
_angle = -PI_2;
}
- (void)mouseDown:(CPEvent)anEvent
- (void)stopTracking:(CGPoint)lastPoint at:(CGPoint)point mouseIsUp:(BOOL)mouseIsUp
{
var bounds = [self bounds],
point = [self convertPoint:[anEvent locationInWindow] fromView:nil];
var bounds = [self bounds];
// Only animate if the user released the mouse INSIDE the button (valid click)
if (CGRectContainsPoint(bounds, point))
@@ -2299,7 +2298,7 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
[clone setAngle:targetAngle];
}
[super mouseDown:anEvent];
[super stopTracking:lastPoint at:point mouseIsUp:mouseIsUp];
}
// This method is called on the CLONE instance when its animation finishes