fix: единая загрузка примеров и стабильный первый кадр (api#301)
deploy-preland / deploy zoomstage.online (push) Successful in 33s

This commit is contained in:
Panfilov Konstantin committed 2026-10-20 19:52:30 +03:00
1 parent 75ccf14889
commit 0c9a406d68
10 files changed
+347 -257

No files matched your search

+2 -1
View File
@@ -3,6 +3,8 @@
(() => {
if (window.ZoomzillaUpload) return;
const android = /Android/i.test(navigator.userAgent);
const mobile = android || /iPhone|iPad|iPod/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
document.documentElement.dataset.uploadDevice = android ? 'android' : (mobile ? 'mobile' : 'desktop');
let uploadQueue = Promise.resolve();
window.ZoomzillaUpload = {
// Резерв из пяти точек задаётся CSS: слово и соседняя иконка не двигаются.
@@ -22,7 +24,6 @@
output.textContent = '.'.repeat(dots);
},
bindPicker(form, mainInput, fullAccept, onFiles) {
const mobile = android || /iPhone|iPad|iPod/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
if (mobile) form.dataset.mobileUpload = '1';
const sync = () => {
const input = typeof mainInput === 'function' ? mainInput() : mainInput;