addition to last commit: decouple TOUCH from MOBILE

This commit is contained in:
Til 2026-05-15 13:10:29 +02:00
parent eb42de3c39
commit ee2b28be83
2 changed files with 4 additions and 6 deletions

View file

@ -1697,12 +1697,6 @@ window.onhashchange = function() {
}
window.onpointerdown = function (e) {
TOUCH = e.pointerType === "touch"
console.log(e)
}
var m = SPINNER.split(','),
SPINNER_CSS = SPINNER.slice(1 + m[0].length);
SPINNER = m[0];

View file

@ -43,6 +43,10 @@ var wah = '',
APPLE = IPHONE || MACOS,
APPLEM = TOUCH && APPLE;
window.onpointerdown = function (e) {
TOUCH = e.pointerType === "touch";
}
if (!window.WebAssembly || !WebAssembly.Memory)
window.WebAssembly = false;