Update transcript-tracer.js
Browse files- 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: '
|
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) {
|