mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
upd: update typewriter mode
This commit is contained in:
@@ -292,7 +292,7 @@ whenEditorReady().then(({ editor }) => {
|
||||
editor.onDidChangeCursorPosition(e => {
|
||||
if (store.state.typewriterMode) {
|
||||
const sources = ['deleteLeft', 'keyboard']
|
||||
if (sources.includes(e.source) && e.reason === 0) {
|
||||
if (sources.includes(e.source) && (e.reason === 0 || e.reason === 3)) {
|
||||
editor.revealPositionInCenter(e.position)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user