mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-02 02:38:53 -04:00
Removed FastClick
This commit is contained in:
@@ -42,7 +42,6 @@ window.Promise = window.Promise || Promise
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
import Clipboard from "clipboard"
|
||||
import FastClick from "fastclick"
|
||||
|
||||
import Material from "./components/Material"
|
||||
|
||||
@@ -75,14 +74,11 @@ const translate = key => {
|
||||
*/
|
||||
function initialize(config) { // eslint-disable-line func-style
|
||||
|
||||
/* Initialize Modernizr and FastClick */
|
||||
/* Initialize Modernizr */
|
||||
new Material.Event.Listener(document, "DOMContentLoaded", () => {
|
||||
if (!(document.body instanceof HTMLElement))
|
||||
throw new ReferenceError
|
||||
|
||||
/* Attach FastClick to mitigate 300ms delay on touch devices */
|
||||
FastClick.attach(document.body)
|
||||
|
||||
/* Test for iOS */
|
||||
Modernizr.addTest("ios", () => {
|
||||
return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)
|
||||
|
||||
Reference in New Issue
Block a user