Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
add autoscrolling to textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonmwest committed Jul 26, 2019
1 parent 3c2b8d9 commit 8ee8f80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ let handleEventStreamMessage = function (messageJson) {
$('#transcript').val(transcription + transcript + "\n");

// if this transcript segment is final, add it to the overall transcription
if (!results[0].IsPartial)
if (!results[0].IsPartial) {
//scroll the textarea down
$('#transcript').scrollTop($('#transcript')[0].scrollHeight);

transcription += transcript + "\n";
}
}
}
}
Expand Down

0 comments on commit 8ee8f80

Please sign in to comment.