diff --git a/backend/static/index.html b/backend/static/index.html index a8f31e4..20068f6 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -93,9 +93,9 @@ - - - + + +
@@ -562,7 +562,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 52903c9..8867846 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '656'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '657'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/worlds.js b/backend/static/js/worlds.js index 4c925f2..b0bbb84 100644 --- a/backend/static/js/worlds.js +++ b/backend/static/js/worlds.js @@ -127,6 +127,21 @@ window.Worlds = (() => { _goTo(next, true); if (next === 2 && !_weltInited) { _weltInited = true; _renderWelt(); } }); + + // Mausrad-Navigation (Desktop) + let _wheelCooldown = false; + track.addEventListener('wheel', e => { + e.preventDefault(); + if (_wheelCooldown) return; + const next = e.deltaX > 30 || e.deltaY > 30 ? Math.min(2, _cur + 1) + : e.deltaX < -30 || e.deltaY < -30 ? Math.max(0, _cur - 1) + : _cur; + if (next === _cur) return; + _wheelCooldown = true; + setTimeout(() => { _wheelCooldown = false; }, 500); + _goTo(next, true); + if (next === 2 && !_weltInited) { _weltInited = true; _renderWelt(); } + }, { passive: false }); } function _goTo(idx, animated) { diff --git a/backend/static/sw.js b/backend/static/sw.js index 897f69a..57eeccd 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v656'; +const CACHE_VERSION = 'by-v657'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache