Skip to content

feat: add Waypoint and useWaypoint components #10

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

Merged
merged 5 commits into from
Jun 22, 2021
Merged

Conversation

jquense
Copy link
Member

@jquense jquense commented Jun 15, 2021

Still need some tests and docs

@jquense jquense marked this pull request as ready for review June 18, 2021 14:21
Copy link
Collaborator

@kyletsang kyletsang 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! Some minor copy edits, and random nits.

)}
onPositionChange={({ position }) => {
if (position === Position.BELOW || position === Position.ABOVE) {
setMessage(`Exited (${Position[position].toLowerCase()})`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if this needs to be clarified anywhere, but exiting the boundary on the right in horizontal mode is considered Position.BELOW which did feel a bit weird when looking at the example.

Copy link
Member Author

Choose a reason for hiding this comment

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

changed the names to something more agnostic 👍

jquense and others added 3 commits June 22, 2021 10:59
Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>
@jquense jquense merged commit 831a86f into main Jun 22, 2021
@jquense jquense deleted the scroll-observer branch June 22, 2021 17:26
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.

2 participants