-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Make sidebar slide in and slide out #698
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
base: master
Are you sure you want to change the base?
Make sidebar slide in and slide out #698
Conversation
|
I am still unsure about these lines |
|
Oops wrong PR |
|
I think this makes sense but one additional thing that should be added is swipe gesture support Seems pretty simple, here is a jquery example: http://demos.jquerymobile.com/1.3.2/examples/panels/panel-swipe-open.html#&ui-state=dialog |
|
@Blendify |
|
@jessetan |
jessetan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using swipelft and swiperight events do not work because they require jQuery mobile, we only include jQuery at this time.
Using vanilla JS (as you had before) is probably better than adding a whole new library. I suggest you do add some more logic to discern real horizontal swipes from "touches" that have a strong vertical component (e.g. a diagonal swipe)
|
@jessetan |
Co-Authored-By: dojutsu-user <[email protected]>
|
If I run this in desktop Chrome devtools with device emulation, my vertical scrolling is broken when the menu is visible. Does it work for you (on a real device)? |
Exactly what you mean by this? |
I mean that I can swipe up and down to scroll the body content when the menu is collapsed, but when the menu is open I can not swipe up and down to scroll the body content nor the contents of the menu if it is longer than can fit on the screen. |
|
@jessetan |
|
@jessetan |
|
Expanding the menu on the "Paragraph level markup" page in the the documentation (https://sphinx-rtd-theme.readthedocs.io/en/latest/demo/demo.html) makes the content part invisible. This works if I remove the Is it possible to close the menu when the content part is clicked/tapped? That feels more logicol on mobile With this PR I can't seem to do inertial scrolling (is that the name?) on mobile Chrome or Safari where you give it a fast flick and it keeps scrolling for a while |


Fixes #697
Final result:
