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

add momentum scrolling #414

Closed
wants to merge 2 commits into from
Closed

Conversation

moorebrett0
Copy link

Add momentum scrolling for IOS makes reading the docs easier on mobile.

@@ -9,6 +9,8 @@ body
flex-direction column
min-height 100vh
margin 0
overflow-y scroll; /* has to be scroll, not auto */
-webkit-overflow-scrolling touch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we using autoprefixer for this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the stylus-auto prefixer plugin was installed? Is there anything special I need to do to configure it?

On Dec 9, 2015, at 2:41 PM, Steve Mao notifications@github.com wrote:

In layouts/css/layout/_sticky-footer.styl:

@@ -9,6 +9,8 @@ body
flex-direction column
min-height 100vh
margin 0

  • overflow-y scroll; /* has to be scroll, not auto */
  • -webkit-overflow-scrolling touch
    are we using autoprefixer for this?


Reply to this email directly or view it on GitHub.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its already configured.

overflow-scrolling touch should just work but its not really standard.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the standard way to turning on the momentum scrolling?    I really do enjoy browsing through the docs on my phone and it's such a pain on my thumb when I have to use it so much to find my spot again (this is the only way I know how :/).    

On Dec 9, 2015, at 7:29 PM, Steve Mao notifications@github.com wrote:

In layouts/css/layout/_sticky-footer.styl:

@@ -9,6 +9,8 @@ body
flex-direction column
min-height 100vh
margin 0

  • overflow-y scroll; /* has to be scroll, not auto */
  • -webkit-overflow-scrolling touch
    I think its already configured.

overflow-scrolling touch should just work but its not really standard.


Reply to this email directly or view it on GitHub.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not saying your doing wrong. I'm saying its not standard feature. https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling

And I'm just saying autoprefixer should handle the prefixing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Sorry about that!

On Dec 9, 2015, at 7:56 PM, Steve Mao notifications@github.com wrote:

In layouts/css/layout/_sticky-footer.styl:

@@ -9,6 +9,8 @@ body
flex-direction column
min-height 100vh
margin 0


Reply to this email directly or view it on GitHub.

@silverwind
Copy link
Contributor

nodejs/node#5878 adds momentum scrolling to the docs. If we're going with it, we should probably do it for the main site too.

cc: @lpinca

@@ -9,6 +9,8 @@ body
flex-direction column
min-height 100vh
margin 0
overflow-y scroll; /* has to be scroll, not auto */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary semicolon?

@lpinca
Copy link
Member

lpinca commented Mar 24, 2016

Looks fine, but I'm gonna try it first.

@lpinca
Copy link
Member

lpinca commented Mar 24, 2016

Hmm I'm not sure why but I can't see the difference here with it enabled.
Anyway the property is not auto prefixed.

@fhemberger
Copy link
Contributor

@moorebrett0 Hi, can you please have a look at the comments above and update your PR? I'd like to get it merged.

@lpinca
Copy link
Member

lpinca commented Apr 19, 2016

I tried pulling again this change and can't see the difference on my iPhone. Scroll works the same with or without this change.
I vote for closing this if someone can confirm that there is no difference.

@moorebrett0
Copy link
Author

Hey there, sorry for the delayed response - removed the semi colon. This seems to work for me on ios-9 can anyone confirm?

@lpinca
Copy link
Member

lpinca commented Apr 28, 2016

@nodejs/website collaborators with iOS devices, can you please test this pull request?
Do you notice any difference when scrolling?

@preco21
Copy link
Contributor

preco21 commented Apr 28, 2016

There is no difference on my iPhone too.

Used device: iPhone 6+
Browser: Chrome for iOS, Safari

@lpinca
Copy link
Member

lpinca commented May 12, 2016

I close this as there is no advantage in getting this merged. If someone can prove otherwise, please reopen.

@lpinca lpinca closed this May 12, 2016
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

Successfully merging this pull request may close these issues.

7 participants