From e3081c1c069f3d43c0879c6dfd45d818c2ec0e18 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 30 Jan 2023 23:32:26 -0500 Subject: [PATCH] Try out a snappier spring --- src/video-grid/NewVideoGrid.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video-grid/NewVideoGrid.tsx b/src/video-grid/NewVideoGrid.tsx index 28b9e0a..a7db7dd 100644 --- a/src/video-grid/NewVideoGrid.tsx +++ b/src/video-grid/NewVideoGrid.tsx @@ -477,6 +477,7 @@ export const NewVideoGrid: FC = ({ enter: { opacity: 1, scale: 1 }, update: ({ x, y, width, height }: Tile) => ({ x, y, width, height }), leave: { opacity: 0, scale: 0 }, + config: { mass: 0.7, tension: 252, friction: 25 }, immediate: (key: string) => disableAnimations || key === "zIndex" || key === "shadow", // If we just stopped dragging a tile, give it time for the