-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[LeftNav] Add iOS momentum scroll #2946
Conversation
I was able to add it to DropDownMenu, no problem. But I applied the SAME exact style to LeftNav, and well.. look at this weirdness: The first one circled is LeftNav. The second one is an activated DropDownMenu. Notice how the LeftNav style is |
I'm guessing this must be related to auto-prefixer. @oliviertassinari Thoughts? |
I agree, I'm wondering if this has nothing to do with https://github.com/rofrischmann/inline-style-prefixer. |
That's exactly it. I didn't know about this at before now. It should be |
@@ -264,6 +264,7 @@ const LeftNav = React.createClass({ | |||
transition: !this.state.swiping && Transitions.easeOut(null, 'transform', null), | |||
backgroundColor: theme.color, | |||
overflow: 'auto', | |||
WebkitOverflowScrolling: 'touch', |
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.
Could you add a comment like Add momentum scrolling for iOS
?
@ffxsam That feel much better on iOS 👍! |
Where exactly? I tried putting in the Also, you'll have to tell me how I should squash my commits, it's not something I do very often and I don't want to mess up the branch. :) |
Try here: https://github.com/callemall/material-ui/blob/master/src/DropDownMenu/DropDownMenu.jsx#L401. |
Nope, that didn't work. I'll put it back. The overflow scrolling property has to be in a very specific spot.. I put it back to where it works. |
I tried to squash/rebase.. I think I messed up. I might delete this PR and start over again. |
My bad. Applying this style to the animation component sounds wrong to me. |
What do you mean by use case? It's the only place that |
I have to investigate. But adding this style inside the animation component doesn't feel right. The |
@ffxsam Any update on this? |
Sorry, been totally swamped lately! Please keep this open.. I will return to it as soon as I can and merge the LeftNav. And then I'll take a second look at Popover. |
Ok, I removed it from the Popover. I would normally squash the commits, but I know once you do that, you can't re-push. |
|
Ok. I thought that was bad practice. Should I squash and force push then? |
Yes please. |
@ffxsam Thanks! That's much better 👍: |
[LeftNav] Add iOS momentum scroll
It really bugged me that there was no touch scroll (momentum) on a few Material UI elements. Makes the interface feel a bit dated.