Fixed auto-closing print dialog when using instant loading

This commit is contained in:
squidfunk 2021-02-02 20:51:42 +01:00
parent fccb77a21a
commit e3c608ace6
11 changed files with 17 additions and 15 deletions

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -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",

View File

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