From 1a7b7054fbb752dbb255a3f55423b677aa3e04c6 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 27 Jan 2026 19:46:49 +0100 Subject: [PATCH] improved: animation --- AppKit/CPOutlineView.j | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/AppKit/CPOutlineView.j b/AppKit/CPOutlineView.j index 0a6900d18..2d5b65e79 100644 --- a/AppKit/CPOutlineView.j +++ b/AppKit/CPOutlineView.j @@ -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