site-mva-global-fret/js
MVA Global Fret fd0acea058 Mobile: lighter render path + touch-to-accelerate the plane
Detects mobile via UA + 768 px media query (IS_MOBILE constant) and
flips three knobs:

- Renderer: antialias off, pixelRatio capped at 1.5 (vs 2 on desktop)
- Parcels: spawn every 2.4 s (vs 1.4 s on desktop) to keep clone+
  draw cost down

Adds touch handlers so users without a mouse can speed the plane up:

- touchstart bumps `touchBoost` from 1 to 6 → BASE_SPEED is multiplied
  by 6 each tick while a finger is on the screen
- touchmove also feeds Math.hypot(dx, dy) * MOUSE_BOOST into
  targetProgress, so swiping advances the plane the same way mouse
  motion does on desktop
- touchend / touchcancel reset touchBoost to 1 and clear last-touch
  coordinates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-05 14:41:34 +02:00
..
form-handler.js Send welcome-back email to clients already registered 2026-05-04 18:18:22 +02:00
intro-scene.js Mobile: lighter render path + touch-to-accelerate the plane 2026-05-05 14:41:34 +02:00
main.js Translate CGV page to EN/MG + full i18n audit fixes 2026-05-04 17:39:55 +02:00
translations.js Expose translations on window so the inline lang switcher can find it 2026-05-05 14:18:14 +02:00