-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
slider and leftSide Nav Menu on dragging event #1384
Comments
I can confirm, the LeftNav opens at the same time as the sliders. Is there anyway to ignore the LeftNav slide open part if it is not from the far left? i.e. only slide open the LeftNav if the slide originates from the far left side. |
I was just dealing with this issue. At Around line 252 in left-nav.jsx. I think this works for me, but I haven't thought about what is the best way. _onBodyTouchStart: function _onBodyTouchStart(e) { |
I can confirm this. @oliviertassinari what do you think about the change suggested by @violinchris above? |
Hmmm this might also solve the swipeable Tabs issue. thoughts @oliviertassinari ? |
_onBodyTouchStart: function _onBodyTouchStart(e) {
if (e.touches[0].pageX > 10) return; I don't know if 10 is enough, but yes, the idea is here 👍. |
When you are dragging a slider on a mobile phone, the left side navigation menu is opened at the sime time that you drag the slider.
it is annoing because you cant use sliders at all in your page.
reproduce:
go to this page in chrome with a mobile device.
http://material-ui.com/#/components/sliders
try to drag the slider
the left navigation menu is opened at the same time so the focus is on both element.
thanks for this awsome product.
The text was updated successfully, but these errors were encountered: