@playkit-js/transcript 3.7.15 → 3.7.16-canary.0-1cfefa2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -421,7 +421,16 @@ export class Transcript extends Component<TranscriptProps, TranscriptState> {
|
|
|
421
421
|
|
|
422
422
|
private _handleClick = (event: MouseEvent | KeyboardEvent) => {
|
|
423
423
|
event.preventDefault();
|
|
424
|
-
|
|
424
|
+
|
|
425
|
+
if (!this.state.isAutoScrollEnabled) {
|
|
426
|
+
this._autoscrollButtonRef?.focus();
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
this.setState(
|
|
431
|
+
{isAutoScrollEnabled: false},
|
|
432
|
+
() => this._autoscrollButtonRef?.focus()
|
|
433
|
+
);
|
|
425
434
|
};
|
|
426
435
|
|
|
427
436
|
private _handleKeyDown = (event: KeyboardEvent) => {
|