I have the following form
<div class="container">
<div class="row" >
<div class="panel panel-default">
<div class="panel-heading">ADAPTOR CHATBOT</div>
<div class="panel-body">
<div class="container" id="contenedor" style="overflow-y: auto; height:500px;">
<div class="row message-bubble"><p class="text-muted">Adaptor ChatBot</p><p>Hola! para que te podamos ayudar debes introducir la palabra usuario seguido de tu nombre de usuario y la palabra password seguida de tu password</p></div>
</div>
<div class="panel-footer">
<div class="input-group">
<input type="text" class="form-control" id="txtChat" onkeypress="return runScript(event)" >
<span class="input-group-btn">
<button onclick="charla()" class="btn btn-default" type="button">Enviar</button>
</span>
</div>
</div>
</div>
</div>
</div>
with the following function
function ScrollView(){
setInterval(function(){if(window.parar)return;document.getElementById('contenedor').scrollTop=document.getElementById('contenedor').scrollHeight},30);
}
the issue is that if you scroll down automatically, but it does not allow me to upload the scroll up again, since thank you
Javascript or Jquery serves me