ydshieh HF staff commited on
Commit
ef2eb69
1 Parent(s): f679004

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +1 -1
transcript-tracer.js CHANGED
@@ -491,7 +491,7 @@ function ttTimeUpdate(e) {
491
  var end_bottom = nodes[nodes.length - 1].getBoundingClientRect().bottom;
492
 
493
  if (current_bottom == end_bottom) {
494
- var objDiv = document.getElementById("transcript");
495
  objDiv.scrollTop = objDiv.scrollHeight;
496
 
497
  }
 
491
  var end_bottom = nodes[nodes.length - 1].getBoundingClientRect().bottom;
492
 
493
  if (current_bottom == end_bottom) {
494
+ var objDiv = document.querySelector(`[data-tt-transcript="0"]`);
495
  objDiv.scrollTop = objDiv.scrollHeight;
496
 
497
  }