emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.75k stars 193 forks source link

shouldFade is not working as aspected. #171

Closed emirhangumus closed 2 days ago

emirhangumus commented 10 months ago

https://github.com/emilkowalski/vaul/blob/68038f145dce8f7ce4827d720d4ed6fa9fcf6a95/src/use-snap-points.ts#L34

snapPoints={[0.5, 0.8]} fadeFromIndex={0} activeSnapPoint={0.5} if i give properties like this, it will not apply the overlay at opening, if i touch, it will apply.

snapPoints={[0.5, 0.5, 0.8]} fadeFromIndex={1} activeSnapPoint={0.5} if i do like this, it working but its not the solution.

lovrozagar commented 9 months ago

This issue still seems to be present, using version 0.8.0.

emilkowalski commented 2 days ago

Fixed in #416