Fixed back-top-top button not disappearing when using sticky navigation tabs

This commit is contained in:
squidfunk 2022-01-21 18:56:43 +01:00
parent bfba84647d
commit 76d73b249f
4 changed files with 6 additions and 6 deletions

View File

@ -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 %}

View File

@ -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()
)