Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismissible makes drawer non-interactable in both directions #311

Open
hallinmattias opened this issue Mar 28, 2024 · 0 comments
Open

Dismissible makes drawer non-interactable in both directions #311

hallinmattias opened this issue Mar 28, 2024 · 0 comments

Comments

@hallinmattias
Copy link

The dismissible prop makes the drawer non-interactable in both directions.

// Pre condition for disallowing dragging in the close direction.
const noCloseSnapPointsPreCondition = snapPoints && !dismissible && !isDraggingInDirection;

// Disallow dragging down to close when first snap point is the active one and dismissible prop is set to false.
if (noCloseSnapPointsPreCondition && activeSnapPointIndex === 0) return;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant