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 smooth scrolling to scrollable tab set #449

Merged
merged 1 commit into from Nov 29, 2019

Conversation

thyhjwb6
Copy link
Collaborator

@thyhjwb6 thyhjwb6 commented Nov 27, 2019

Related issue

#218

Overview

Make scrolling smooth when browsing tabs in scrollable tab set.

Reason

Without smooth scrolling the user experience is awkward because it feels like the tabs are disappearing.

Work carried out

  • Add smooth scrolling

Screenshot

scroll

@thyhjwb6 thyhjwb6 self-assigned this Nov 27, 2019
@thyhjwb6 thyhjwb6 force-pushed the feature/smooth-scrolling branch 6 times, most recently from 3f18f0f to e932cb4 Compare November 28, 2019 16:39
@thyhjwb6 thyhjwb6 changed the title [WIP] Feature/smooth scrolling Add smooth scrolling to scrollable tab set Nov 28, 2019
@thyhjwb6 thyhjwb6 marked this pull request as ready for review November 28, 2019 17:03
Copy link
Member

@m7kvqbe1 m7kvqbe1 left a comment

Choose a reason for hiding this comment

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

Looks good to me - it took me a while to process the useScrollableTabset hook but I don't see any issues.


scrollToSpy = jest
.spyOn(tabs, 'scrollTo')
// @ts-ignore
Copy link
Member

Choose a reason for hiding this comment

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

What did it get upset about here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The destructuring of the scrollTo parameter.

@thyhjwb6 thyhjwb6 merged commit 5a58b8c into develop Nov 29, 2019
@thyhjwb6 thyhjwb6 deleted the feature/smooth-scrolling branch November 29, 2019 10:11
@thyhjwb6 thyhjwb6 mentioned this pull request Dec 10, 2019
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.

None yet

2 participants