Ensure event listeners are passive

This commit is contained in:
squidfunk 2020-03-17 16:43:49 +01:00
parent 0982cbe2e1
commit 153aaabbaa
10 changed files with 13 additions and 13 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

View File

@ -1,10 +1,10 @@
{ {
"assets/javascripts/bundle.js": "assets/javascripts/bundle.1696ff1a.min.js", "assets/javascripts/bundle.js": "assets/javascripts/bundle.9540cf4a.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.1696ff1a.min.js.map", "assets/javascripts/bundle.js.map": "assets/javascripts/bundle.9540cf4a.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js", "assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.e81a0042.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.26b5f3f7.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css" "assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css"
} }

View File

@ -41,7 +41,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e81a0042.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.26b5f3f7.min.css' | url }}">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}">
{% endif %} {% endif %}
@ -178,7 +178,7 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.1696ff1a.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.9540cf4a.min.js' | url }}"></script>
{%- set translations = {} -%} {%- set translations = {} -%}
{%- for key in [ {%- for key in [
"clipboard.copy", "clipboard.copy",

View File

@ -74,8 +74,8 @@ export function setViewportOffset(
*/ */
export function watchViewportOffset(): Observable<ViewportOffset> { export function watchViewportOffset(): Observable<ViewportOffset> {
return merge( return merge(
fromEvent<UIEvent>(window, "scroll"), fromEvent<UIEvent>(window, "scroll", { passive: true }),
fromEvent<UIEvent>(window, "resize") fromEvent<UIEvent>(window, "resize", { passive: true })
) )
.pipe( .pipe(
map(getViewportOffset), map(getViewportOffset),

View File

@ -83,7 +83,7 @@ export function patchScrollfix(
iif(isAppleDevice, els$, NEVER) iif(isAppleDevice, els$, NEVER)
.pipe( .pipe(
switchMap(els => merge(...els.map(el => ( switchMap(els => merge(...els.map(el => (
fromEvent(el, "touchstart") fromEvent(el, "touchstart", { passive: true })
.pipe( .pipe(
mapTo(el) mapTo(el)
) )

View File

@ -68,7 +68,7 @@
{% endif %} {% endif %}
<!-- Favicon --> <!-- Favicon -->
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}"> <link rel="shortcut icon" href="{{ config.theme.favicon | url }}" />
<!-- Generator banner --> <!-- Generator banner -->
<meta <meta