Skip to content

Commit

Permalink
Fixed back-top-top button not disappearing when using sticky navigati…
Browse files Browse the repository at this point in the history
…on tabs
  • Loading branch information
squidfunk committed Jan 21, 2022
1 parent bfba846 commit 76d73b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.01de222e.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.b86f40a9.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/javascripts/components/top/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function watchBackToTop(
.pipe(
map(({ offset: { y } }) => y),
bufferCount(2, 1),
map(([a, b]) => a > b),
map(([a, b]) => a > b && b > 0),
distinctUntilChanged()
)

Expand Down

0 comments on commit 76d73b2

Please sign in to comment.