Added pointer events shim

This commit is contained in:
Mitchell McCaffrey 2021-03-16 16:13:48 +11:00
parent 8cc0a8d7b3
commit 30eebe2a98
3 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,7 @@
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
"normalize-wheel": "^1.0.1",
"pepjs": "^0.5.3",
"polygon-clipping": "^0.15.1",
"pretty-bytes": "^5.4.1",
"raw.macro": "^0.4.2",

View File

@ -11,6 +11,11 @@ import * as serviceWorker from "./serviceWorker";
import "./index.css";
// Pointer events shim
if (!("PointerEvent" in window)) {
import("pepjs");
}
console.log(
"env",
process.env,

View File

@ -8837,6 +8837,11 @@ pbkdf2@^3.0.3:
safe-buffer "^5.0.1"
sha.js "^2.4.8"
pepjs@^0.5.3:
version "0.5.3"
resolved "https://registry.yarnpkg.com/pepjs/-/pepjs-0.5.3.tgz#dc755f03d965c20e4b1bb65e42a03a97c382cfc7"
integrity sha512-5yHVB9OHqKd9fr/OIsn8ss0NgThQ9buaqrEuwr9Or5YjPp6h+WTDKWZI+xZLaBGZCtODTnFtlSHNmhFsq67THg==
performance-now@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"