Ensure event listeners are passive
This commit is contained in:
parent
0982cbe2e1
commit
153aaabbaa
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,10 +1,10 @@
|
|||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.1696ff1a.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.1696ff1a.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.9540cf4a.min.js",
|
||||
"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.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.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"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -41,7 +41,7 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
{% 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 %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}">
|
||||
{% endif %}
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<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 = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ export function setViewportOffset(
|
|||
*/
|
||||
export function watchViewportOffset(): Observable<ViewportOffset> {
|
||||
return merge(
|
||||
fromEvent<UIEvent>(window, "scroll"),
|
||||
fromEvent<UIEvent>(window, "resize")
|
||||
fromEvent<UIEvent>(window, "scroll", { passive: true }),
|
||||
fromEvent<UIEvent>(window, "resize", { passive: true })
|
||||
)
|
||||
.pipe(
|
||||
map(getViewportOffset),
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ export function patchScrollfix(
|
|||
iif(isAppleDevice, els$, NEVER)
|
||||
.pipe(
|
||||
switchMap(els => merge(...els.map(el => (
|
||||
fromEvent(el, "touchstart")
|
||||
fromEvent(el, "touchstart", { passive: true })
|
||||
.pipe(
|
||||
mapTo(el)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@
|
|||
{% endif %}
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
|
||||
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}" />
|
||||
|
||||
<!-- Generator banner -->
|
||||
<meta
|
||||
|
|
|
|||
Loading…
Reference in New Issue