diff --git a/index.html b/index.html
index 48e0c34..c2b5735 100644
--- a/index.html
+++ b/index.html
@@ -159,6 +159,7 @@ question.onkeydown = function(e) {
};
question.onfocus = function() {
+ window.onresize;
question.scrollIntoView({ block: 'end', behavior: 'auto' });
};
@@ -205,7 +206,6 @@ formulaire.addEventListener('submit', async (e) => {
paragraphe.innerHTML += lettre;
}
paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' });
- question.onfocus();
}, t += 100 * Math.random());
});
setTimeout(() => {
@@ -213,7 +213,6 @@ formulaire.addEventListener('submit', async (e) => {
paragraphe.classList.add('reponse');
paragraphe.innerHTML = 'Voulez-vous que je réponde à une autre question ?';
conversation.appendChild(paragraphe);
- paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' });
bouton_envoyer.disabled = false;
bouton_envoyer.setAttribute("aria-busy", false);
bouton_envoyer.innerHTML = bouton_envoyer_innerHTML;