ydshieh HF staff commited on
Commit
e765f0a
1 Parent(s): 120961d

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +1 -1
transcript-tracer.js CHANGED
@@ -426,7 +426,7 @@ function ttTimeUpdate(e) {
426
 
427
  // Auto-scroll to the highlighted text
428
  if (ttAutoScroll) {
429
- var scrollOptions = { behavior: 'smooth', block: 'start', inline: 'nearest' }
430
  if (ttAutoScroll == 'block' && ttPreviousEvent?.blockIndex != ttCurrentEvent.blockIndex) {
431
  document.querySelector('.tt-current-block-container').scrollIntoView(scrollOptions);
432
  } else if (ttAutoScroll == 'phrase' && ttPreviousEvent?.phraseIndex != ttCurrentEvent.phraseIndex) {
 
426
 
427
  // Auto-scroll to the highlighted text
428
  if (ttAutoScroll) {
429
+ var scrollOptions = { behavior: 'smooth', block: 'center', inline: 'nearest' }
430
  if (ttAutoScroll == 'block' && ttPreviousEvent?.blockIndex != ttCurrentEvent.blockIndex) {
431
  document.querySelector('.tt-current-block-container').scrollIntoView(scrollOptions);
432
  } else if (ttAutoScroll == 'phrase' && ttPreviousEvent?.phraseIndex != ttCurrentEvent.phraseIndex) {