Skip to content

Commit 159a39b

Browse files
committed
fix(webapp): clear isAnimating when a resize drag interrupts a collapse
Grabbing the resize handle cancels an in-flight collapse/expand animation frame but left the isAnimating flag set. A drag that then rests via writeVisual (width >= DEFAULT_WIDTH) never reset it, so the side menu kept hiding its scrollbar gutter until the next full collapse/expand. Clear the flag on handle pointer-down so the reserved gutter returns on release.
1 parent eb77082 commit 159a39b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ export function SideMenu({
519519
cancelAnimationFrame(rafRef.current);
520520
rafRef.current = null;
521521
}
522+
// Grabbing the handle interrupts any in-flight collapse/expand; clear the flag so a drag that
523+
// rests via writeVisual (not animateTo) doesn't strand it true and keep the gutter hidden.
524+
setIsAnimating(false);
522525
// Never allow two concurrent drags.
523526
dragCleanupRef.current?.();
524527

0 commit comments

Comments
 (0)