From 58ca9d25406215c6e91aa8a7402d203e798b55cf Mon Sep 17 00:00:00 2001 From: posimai Date: Mon, 20 Apr 2026 20:56:05 +0900 Subject: [PATCH] =?UTF-8?q?fix(posimai-sc):=20=E3=82=B9=E3=83=86=E3=83=83?= =?UTF-8?q?=E3=83=973=E9=81=B7=E7=A7=BB=E6=99=82=E3=81=AE=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E3=82=B9=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB=E3=82=92?= =?UTF-8?q?=E5=AE=8C=E5=85=A8=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nextStepFlash / nextStepDrill でステップ3へ移る際の scrollTo(scrollHeight) を削除。理解度チェックへのスクロールは 「理解度チェックへ移動」ボタン経由のみとする。 SW を v6 → v7 に更新。 Co-Authored-By: Claude Sonnet 4.6 --- posimai-sc/js/app.js | 12 +----------- posimai-sc/sw.js | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/posimai-sc/js/app.js b/posimai-sc/js/app.js index fc0fe1a7..10f2424b 100644 --- a/posimai-sc/js/app.js +++ b/posimai-sc/js/app.js @@ -945,12 +945,6 @@ document.addEventListener('alpine:init', () => { this.stepDrillIdx=0; this.stepDrillAnswered=false; this.stepDrillSelected=-1; - if(this.stepStep===3){ - this.$nextTick(()=>{ - const m=document.getElementById('main'); - if(m) m.scrollTo({top:m.scrollHeight,behavior:'smooth'}); - }); - } this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); }); } }, @@ -970,11 +964,7 @@ document.addEventListener('alpine:init', () => { this.stepDrillSelected=-1; } else { this.stepStep=3; - this.$nextTick(()=>{ - if(window.lucide) lucide.createIcons(); - const m=document.getElementById('main'); - if(m) m.scrollTo({top:m.scrollHeight,behavior:'smooth'}); - }); + this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); }); } } })); diff --git a/posimai-sc/sw.js b/posimai-sc/sw.js index 18154280..81448af4 100644 --- a/posimai-sc/sw.js +++ b/posimai-sc/sw.js @@ -1,5 +1,5 @@ // posimai-sc SW — same-origin の静的資産のみキャッシュ(CDN は対象外) -const CACHE = 'posimai-sc-v6'; +const CACHE = 'posimai-sc-v7'; const STATIC = [ '/', '/index.html',