Removed FastClick

This commit is contained in:
squidfunk 2019-02-13 15:49:10 +01:00
parent 163438a425
commit 9a4b142e10
7 changed files with 13 additions and 23 deletions

View File

@ -1,7 +1,9 @@
mkdocs-material-3.x.x (2019-xx-xx) mkdocs-material-4.0.0 (2019-xx-xx)
* Removed Google Tag Manager and reverted to Google Analytics * Removed Google Tag Manager and reverted to Google Analytics
* Removed blocks in partials - Jinja doesn't support them * Removed blocks in partials - Jinja doesn't support them
* Fixed #911: Chrome breaks layout if system language is Chinese
* Fixed #976: Removed FastClick
mkdocs-material-3.3.0 (2019-01-29) mkdocs-material-3.3.0 (2019-01-29)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -66,7 +66,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block libs %} {% block libs %}
<script src="{{ 'assets/javascripts/modernizr.962652e9.js' | url }}"></script> <script src="{{ 'assets/javascripts/modernizr.1f0bcf2b.js' | url }}"></script>
{% endblock %} {% endblock %}
{% block fonts %} {% block fonts %}
{% if font != false %} {% if font != false %}
@ -190,7 +190,7 @@
{% endblock %} {% endblock %}
</div> </div>
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/application.c5c8ade4.js' | url }}"></script> <script src="{{ 'assets/javascripts/application.ad41a940.js' | url }}"></script>
{% if lang.t("search.language") != "en" %} {% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %} {% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %} {% if languages | length and languages[0] != "" %}

View File

@ -52,7 +52,6 @@
"event-hooks-webpack-plugin": "^2.1.1", "event-hooks-webpack-plugin": "^2.1.1",
"expose-loader": "^0.7.4", "expose-loader": "^0.7.4",
"extract-loader": "^3.1.0", "extract-loader": "^3.1.0",
"fastclick": "^1.0.6",
"file-loader": "^3.0.1", "file-loader": "^3.0.1",
"html-minifier": "^3.5.6", "html-minifier": "^3.5.6",
"imagemin-webpack-plugin": "^2.4.2", "imagemin-webpack-plugin": "^2.4.2",

View File

@ -42,7 +42,6 @@ window.Promise = window.Promise || Promise
* ------------------------------------------------------------------------- */ * ------------------------------------------------------------------------- */
import Clipboard from "clipboard" import Clipboard from "clipboard"
import FastClick from "fastclick"
import Material from "./components/Material" import Material from "./components/Material"
@ -75,14 +74,11 @@ const translate = key => {
*/ */
function initialize(config) { // eslint-disable-line func-style function initialize(config) { // eslint-disable-line func-style
/* Initialize Modernizr and FastClick */ /* Initialize Modernizr */
new Material.Event.Listener(document, "DOMContentLoaded", () => { new Material.Event.Listener(document, "DOMContentLoaded", () => {
if (!(document.body instanceof HTMLElement)) if (!(document.body instanceof HTMLElement))
throw new ReferenceError throw new ReferenceError
/* Attach FastClick to mitigate 300ms delay on touch devices */
FastClick.attach(document.body)
/* Test for iOS */ /* Test for iOS */
Modernizr.addTest("ios", () => { Modernizr.addTest("ios", () => {
return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g) return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)