diff --git a/web/src/views/PlayGroundView.vue b/web/src/views/PlayGroundView.vue index e8332746..dca632de 100644 --- a/web/src/views/PlayGroundView.vue +++ b/web/src/views/PlayGroundView.vue @@ -137,7 +137,7 @@ export default { mounted() { const text_element = document.getElementById('text_element'); text_element.addEventListener('input', () => { - this.cursorPosition = text_element.selectionStart+1; + this.cursorPosition = text_element.selectionStart; }); text_element.addEventListener('click', () => { this.cursorPosition = text_element.selectionStart;