Try out a snappier spring

This commit is contained in:
Robin Townsend 2023-01-30 23:32:26 -05:00
parent f540f48461
commit e3081c1c06

View file

@ -477,6 +477,7 @@ export const NewVideoGrid: FC<Props> = ({
enter: { opacity: 1, scale: 1 }, enter: { opacity: 1, scale: 1 },
update: ({ x, y, width, height }: Tile) => ({ x, y, width, height }), update: ({ x, y, width, height }: Tile) => ({ x, y, width, height }),
leave: { opacity: 0, scale: 0 }, leave: { opacity: 0, scale: 0 },
config: { mass: 0.7, tension: 252, friction: 25 },
immediate: (key: string) => immediate: (key: string) =>
disableAnimations || key === "zIndex" || key === "shadow", disableAnimations || key === "zIndex" || key === "shadow",
// If we just stopped dragging a tile, give it time for the // If we just stopped dragging a tile, give it time for the