ydshieh HF Staff commited on
Commit
f679561
·
verified ·
1 Parent(s): c0efa28

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +1 -1
transcript-tracer.js CHANGED
@@ -436,7 +436,7 @@ function ttTimeUpdate(e) {
436
 
437
  // Auto-scroll to the highlighted text
438
  if (ttAutoScroll && !ttActivePlayer.paused && ttActivePlayer.duration != 0) {
439
- var scrollOptions = { behavior: 'smooth', block: 'center', inline: 'nearest' }
440
  if (ttAutoScroll == 'block' && ttPreviousEvent?.blockIndex != ttCurrentEvent.blockIndex) {
441
  document.querySelector('.tt-current-block-container').scrollIntoView(scrollOptions);
442
  } else if (ttAutoScroll == 'phrase' && ttPreviousEvent?.phraseIndex != ttCurrentEvent.phraseIndex) {
 
436
 
437
  // Auto-scroll to the highlighted text
438
  if (ttAutoScroll && !ttActivePlayer.paused && ttActivePlayer.duration != 0) {
439
+ var scrollOptions = { behavior: 'smooth', block: 'nearest', inline: 'nearest' }
440
  if (ttAutoScroll == 'block' && ttPreviousEvent?.blockIndex != ttCurrentEvent.blockIndex) {
441
  document.querySelector('.tt-current-block-container').scrollIntoView(scrollOptions);
442
  } else if (ttAutoScroll == 'phrase' && ttPreviousEvent?.phraseIndex != ttCurrentEvent.phraseIndex) {