mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
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
2
material/assets/javascripts/bundle.9540cf4a.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.9540cf4a.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.9540cf4a.min.js.map
Normal file
1
material/assets/javascripts/bundle.9540cf4a.min.js.map
Normal file
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": "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"
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
@ -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",
|
||||||
|
@ -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),
|
||||||
|
@ -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)
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user