Skip to content

Commit

Permalink
fix: fixing autoclose in timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
macci001 committed Jan 10, 2025
1 parent 0f59b66 commit f14e526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/toast/src/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export function useToast<T extends ToastProps>(originalProps: UseToastProps<T>)
}
},
style: {
opacity: Math.max(0, 1 - dragValue / SWIPE_THRESHOLD),
opacity: drag ? Math.max(0, 1 - dragValue / (SWIPE_THRESHOLD + 20)) : undefined,
},
...mergeProps(props, otherProps, toastProps, hoverProps),
}),
Expand Down

0 comments on commit f14e526

Please sign in to comment.