From a740fe62524706e51970f0e58b7b8137814c4ffa Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 22 Aug 2023 01:09:43 +0200 Subject: [PATCH] fixed --- web/src/views/PlayGroundView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;