fix(posimai-sc): ステップ3完了時の自動ジャンプを廃止

Made-with: Cursor
This commit is contained in:
posimai 2026-04-20 20:13:49 +09:00
parent f33854b8a0
commit 8f4294fe09
2 changed files with 1 additions and 10 deletions

View File

@ -826,7 +826,7 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1
<i data-lucide="arrow-left" style="width:11px;height:11px"></i> <i data-lucide="arrow-left" style="width:11px;height:11px"></i>
戻る 戻る
</button> </button>
<button class="btn-sm" type="button" @click="finishStepMode()" aria-label="学習フローを終了し理解度チェックへ"> <button class="btn-sm" type="button" @click="finishStepMode()" aria-label="学習フローを終了して通常画面に戻る">
<i data-lucide="check" style="width:11px;height:11px"></i> <i data-lucide="check" style="width:11px;height:11px"></i>
学習フローを終了 学習フローを終了
</button> </button>

View File

@ -824,18 +824,9 @@ document.addEventListener('alpine:init', () => {
this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); }); this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); });
}, },
finishStepMode(){ finishStepMode(){
if(document.activeElement && typeof document.activeElement.blur === 'function'){
document.activeElement.blur();
}
this.stepMode=false; this.stepMode=false;
this.$nextTick(()=>{ this.$nextTick(()=>{
if(window.lucide) lucide.createIcons(); if(window.lucide) lucide.createIcons();
requestAnimationFrame(()=>{
requestAnimationFrame(()=>{
this.scrollMainToComprehension('auto');
setTimeout(()=>{ this.scrollMainToComprehension('auto'); }, 140);
});
});
}); });
}, },
scrollToComprehension(){ scrollToComprehension(){