@24i/bigscreen-sdk 1.0.24 → 1.0.25-alpha.2426
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
|
@@ -28,15 +28,19 @@ export class PlayPauseButton extends Component<Props> {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
onPlaying = () => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
if (isFocused(this.playButton)) {
|
|
32
|
+
runAsync(() => { // Needs to be async to allow pause button to be displayed first
|
|
33
|
+
this.pauseButton.current!.focus();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
onPause = () => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
if (isFocused(this.pauseButton)) {
|
|
40
|
+
runAsync(() => { // Needs to be async to allow play button to be displayed first
|
|
41
|
+
this.playButton.current!.focus();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
40
44
|
};
|
|
41
45
|
|
|
42
46
|
focus(options?: FocusOptions) {
|