[PlayerPanel] onClickBack cursorVisible
This commit is contained in:
@@ -10,6 +10,7 @@ import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
|
||||
|
||||
import dummyVtt from "../../../assets/mock/video.vtt";
|
||||
import {
|
||||
changeAppStatus,
|
||||
changeLocalSettings,
|
||||
requestLiveSubtitle,
|
||||
sendBroadCast,
|
||||
@@ -751,6 +752,8 @@ const PlayerPanel = ({
|
||||
|
||||
videoPlayer.current?.hideControls();
|
||||
setSelectedIndex(backupInitialIndex);
|
||||
dispatch(changeAppStatus({ cursorVisible: false }));
|
||||
Spotlight.setPointerMode(false);
|
||||
if (panelInfo.shptmBanrTpNm === "MEDIA") {
|
||||
dispatch(
|
||||
updatePanel({
|
||||
@@ -768,6 +771,8 @@ const PlayerPanel = ({
|
||||
|
||||
if (!panelInfo.modal) {
|
||||
dispatch(PanelActions.popPanel());
|
||||
dispatch(changeAppStatus({ cursorVisible: false }));
|
||||
Spotlight.setPointerMode(false);
|
||||
// ev?.stopPropagation();
|
||||
ev?.preventDefault();
|
||||
return;
|
||||
@@ -1618,7 +1623,7 @@ const PlayerPanel = ({
|
||||
disabled={panelInfo.modal}
|
||||
onEnded={onEnded}
|
||||
noAutoPlay={cannotPlay}
|
||||
autoCloseTimeout={3000}
|
||||
autoCloseTimeout={30000000}
|
||||
onBackButton={onClickBack}
|
||||
spotlightDisabled={
|
||||
(!videoVerticalVisible &&
|
||||
|
||||
Reference in New Issue
Block a user