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:
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>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% 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"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export function watchBackToTop(
|
|||||||
.pipe(
|
.pipe(
|
||||||
map(({ offset: { y } }) => y),
|
map(({ offset: { y } }) => y),
|
||||||
bufferCount(2, 1),
|
bufferCount(2, 1),
|
||||||
map(([a, b]) => a > b),
|
map(([a, b]) => a > b && b > 0),
|
||||||
distinctUntilChanged()
|
distinctUntilChanged()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user