@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playkit-js/transcript",
3
- "version": "3.7.15",
3
+ "version": "3.7.16-canary.0-1cfefa2",
4
4
  "main": "dist/playkit-transcript.js",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -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
- this._autoscrollButtonRef?.focus();
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) => {