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

On slightly opening menu and again closing it ,its opening instead of closing #6

Open
RahulSathe458 opened this issue Apr 19, 2021 · 1 comment

Comments

@RahulSathe458
Copy link

If we try to open slightly and close immediately so in that case slider always open instead of closing it.....

slider_issue_new.mp4
@lorenzodianni
Copy link
Member

Hi @RahulSathe458, you could set in sidebar config one of these options to prevent accidental open

    // Minimum swipe in px required to trigger listener: open
    documentMinSwipeX?: 10,
    
    // Range in px where document is listening for gesture: open
    documentSwipeRange?: 40,

When the sidebar is opening, until it is fully open, you can not close it.
If you need these feature PR are welcome!

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

2 participants