mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed auto-closing print dialog when using instant loading
This commit is contained in:
parent
fccb77a21a
commit
e3c608ace6
@ -21,7 +21,7 @@ It also includes the [search bar][1] and a place to display your project's
|
|||||||
:octicons-beaker-24: Experimental
|
:octicons-beaker-24: Experimental
|
||||||
|
|
||||||
When _autohiding_ is enabled, the header is automatically hidden when the
|
When _autohiding_ is enabled, the header is automatically hidden when the
|
||||||
user scrolls past a certain threshold, leaving more space for content. Add the
|
user scrolls past a certain threshold, leaving more space for content. Add the
|
||||||
following lines to `mkdocs.yml`:
|
following lines to `mkdocs.yml`:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
|
2
material/assets/javascripts/bundle.994580cf.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.994580cf.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.994580cf.min.js.map
Normal file
1
material/assets/javascripts/bundle.994580cf.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/vendor.18f0862e.min.js.map
Normal file
1
material/assets/javascripts/vendor.18f0862e.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.e9c9f54f.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.994580cf.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.e9c9f54f.min.js.map",
|
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.994580cf.min.js.map",
|
||||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.53cc9318.min.js",
|
"assets/javascripts/vendor.js": "assets/javascripts/vendor.18f0862e.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.53cc9318.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.18f0862e.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.9c0e82ba.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.9c0e82ba.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.9c0e82ba.min.js.map",
|
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.9c0e82ba.min.js.map",
|
||||||
"assets/stylesheets/main.css": "assets/stylesheets/main.cb6bc1d0.min.css",
|
"assets/stylesheets/main.css": "assets/stylesheets/main.cb6bc1d0.min.css",
|
||||||
|
@ -184,8 +184,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.53cc9318.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/vendor.18f0862e.min.js' | url }}"></script>
|
||||||
<script src="{{ 'assets/javascripts/bundle.e9c9f54f.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.994580cf.min.js' | url }}"></script>
|
||||||
{%- set translations = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -32,6 +32,7 @@ import {
|
|||||||
sample,
|
sample,
|
||||||
share,
|
share,
|
||||||
skip,
|
skip,
|
||||||
|
skipUntil,
|
||||||
switchMap
|
switchMap
|
||||||
} from "rxjs/operators"
|
} from "rxjs/operators"
|
||||||
|
|
||||||
@ -250,6 +251,7 @@ export function setupInstantLoading(
|
|||||||
/* Debounce update of viewport offset */
|
/* Debounce update of viewport offset */
|
||||||
viewport$
|
viewport$
|
||||||
.pipe(
|
.pipe(
|
||||||
|
skipUntil(push$),
|
||||||
debounceTime(250),
|
debounceTime(250),
|
||||||
distinctUntilKeyChanged("offset")
|
distinctUntilKeyChanged("offset")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user