fix(posimai-sc): ステップ3遷移時の自動スクロールを完全削除
nextStepFlash / nextStepDrill でステップ3へ移る際の scrollTo(scrollHeight) を削除。理解度チェックへのスクロールは 「理解度チェックへ移動」ボタン経由のみとする。 SW を v6 → v7 に更新。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
af51a75244
commit
58ca9d2540
|
|
@ -945,12 +945,6 @@ document.addEventListener('alpine:init', () => {
|
||||||
this.stepDrillIdx=0;
|
this.stepDrillIdx=0;
|
||||||
this.stepDrillAnswered=false;
|
this.stepDrillAnswered=false;
|
||||||
this.stepDrillSelected=-1;
|
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(); });
|
this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -970,11 +964,7 @@ document.addEventListener('alpine:init', () => {
|
||||||
this.stepDrillSelected=-1;
|
this.stepDrillSelected=-1;
|
||||||
} else {
|
} else {
|
||||||
this.stepStep=3;
|
this.stepStep=3;
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); });
|
||||||
if(window.lucide) lucide.createIcons();
|
|
||||||
const m=document.getElementById('main');
|
|
||||||
if(m) m.scrollTo({top:m.scrollHeight,behavior:'smooth'});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// posimai-sc SW — same-origin の静的資産のみキャッシュ(CDN は対象外)
|
// posimai-sc SW — same-origin の静的資産のみキャッシュ(CDN は対象外)
|
||||||
const CACHE = 'posimai-sc-v6';
|
const CACHE = 'posimai-sc-v7';
|
||||||
const STATIC = [
|
const STATIC = [
|
||||||
'/',
|
'/',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue