mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed back-top-top button not disappearing when using sticky navigation tabs
This commit is contained in:
parent
bfba84647d
commit
76d73b249f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||
|
@ -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()
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user