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

Smooth scroll speed adjustment for Admin UI #4635

Merged

Conversation

AntonyMayer
Copy link

Description of changes

Addressing request from my colleagues (content publishers) to speed up smooth scroll when form is updated and form happens to be quite long (page hight). Current speed is 50px with timeout 20ms is static and sometimes it takes up to 10-15 seconds to wait for smooth scroll to complete. Update takes current scrollY position into consideration to calculate the speed, hence the bigger scrolllY value, the higher smooth scroll speed, slowing down as it approaches top of the page.

Related issues (if any)

Haven't found any.

Testing

  • Please confirm npm run test-all ran successfully.

Test fails with error 15:14 Unexpected token = in website/templates/template-doc-layout.js.
It was there before development started. Error is caused by class method notation being wrong.
I decided to leave as is because it's not related to my issue.

@AntonyMayer AntonyMayer changed the title smooth scroll spped now based on current scroll position Smooth scroll speed adjustment for Admin UI May 16, 2018
@stennie stennie self-requested a review July 7, 2018 01:46
@stennie
Copy link
Contributor

stennie commented Jul 7, 2018

Nice work .. thanks @AntonyMayer !

@stennie stennie merged commit 8bf9b1a into keystonejs:master Jul 7, 2018
@stennie stennie added this to the v4.0.0-rc.2 milestone Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants