-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Yet Another Sticky Nav PR #1662
Conversation
@benlk This works as expected. I'm going to dive deeper and see if/what we can reduce/refine in |
@benlk We can probably combine lines 81-82 into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ A review job has been created and sent to the PullRequest network.
Check the status or cancel PullRequest code review here - or - cancel by adding [!pr] to the title of the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to inactivity, PullRequest has cancelled this review job. You can reactivate the code review job from the PullRequest dashboard
The suggested changes in #1660 (comment) for the problem of the sticky nav not obeying the thing
Testing criteria for same:
|
…hould be controlled by js for .show class
... huh. Looks like the "sticky nav disabled" box doesn't do anything, presently. 🐛 |
When the sticky nav is set to "Hide the main navigation on article pages and display only the sticky navigation on article pages", and the browser is loaded at the top of the page, scrolling down the page, or down-pause-down, does not cause the sticky nav to disappear. This does not occur when the browser is initially loaded from the middle of the page. |
The reason for the sticky nav remaining shown is because of how the nav js assumes that If the element is visible, remove 'show', else make sure it shows. But there's no check that the element exists. an aside: I cannot wait to replace the sticky nav's positional js and suchlike with a big |
Gonna have to merge |
…nd Navigation.prototype.stickyNavScrollTopHide As discussed in #1662 (comment)
73ef9a4 fixes the problem identified in #1662 (comment), where "Scrolling down the page makes the sticky nav go away" was not happening. |
This is partly because of ce20125 removing the styles that kept it hidden, but other changes in this PR removed other code related to the case where |
Note for testing: With inspector tools docked to the window as a sidebar, the |
(fixing merge conflict) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the test cases in #1662 (comment) work as expected.
Changes
show
class.uglify
task togrunt watch
This is ClickUp task IDs #106nk0 and #106rw4
To do:
height
- andtop
-related settings in this scripttesting
See #1662 (comment)