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

Scroll window down so targeted elements are not hidden beneath navbar #724

Merged
merged 0 commits into from
Sep 15, 2015

Conversation

nathanstitt
Copy link
Member

After chatting with @pandafulmanda and @Fredasaurus they were in favor of a smooth scroll effect to navigate to elements. This may be completely deprecated by @pandafulmanda's #725 but there may also be times where we want to smoothly scroll to an element.

The gif doesn't really have enough frames to capture the smoooothness:
scroll

@pandafulmanda
Copy link
Contributor

👍

@pandafulmanda pandafulmanda mentioned this pull request Sep 9, 2015
8 tasks
@@ -16,6 +17,10 @@ MEDIA_LINK_EXCLUDES = [
'[data-targeted=media]'
]

# elements that are currently targeted by the URL's hash are
# scrolled down this much in order to appear below the top navbar
FOCUSED_TARGET_TOP_POSITION = 100
Copy link
Member

Choose a reason for hiding this comment

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

Is this variable still used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope :( Removed.

@philschatz
Copy link
Member

How difficult would it be to update the hash when clicking on a link? and have you tested with links to other pages?

@nathanstitt nathanstitt merged commit 03cff01 into master Sep 15, 2015
@pandafulmanda pandafulmanda mentioned this pull request Sep 24, 2015
12 tasks
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

3 participants