[251211] fix: PlayerPanel autoClose activityCheck
🕐 커밋 시간: 2025. 12. 11. 17:59:30 📊 변경 통계: • 총 파일: 2개 • 추가: +1줄 • 삭제: -6줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx 🔧 주요 변경 내용: • UI 컴포넌트 아키텍처 개선 • 코드 정리 및 최적화 Performance: 코드 최적화로 성능 개선 기대
This commit is contained in:
@@ -1157,11 +1157,6 @@ const VideoPlayerBase = class extends React.Component {
|
|||||||
// detection of when "more" is pressed vs when the state is updated is mismatched. Using an
|
// detection of when "more" is pressed vs when the state is updated is mismatched. Using an
|
||||||
// instance variable that's only set and used for this express purpose seems cleanest.
|
// instance variable that's only set and used for this express purpose seems cleanest.
|
||||||
|
|
||||||
// TabContainerV2가 표시 중이면 자동으로 닫지 않음
|
|
||||||
if (this.props.tabContainerVersion === 2 && this.props.belowContentsVisible) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.props.autoCloseTimeout && !this.props.sideContentsVisible) {
|
if (this.props.autoCloseTimeout && !this.props.sideContentsVisible) {
|
||||||
this.autoCloseJob.startAfter(this.props.autoCloseTimeout);
|
this.autoCloseJob.startAfter(this.props.autoCloseTimeout);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2955,7 +2955,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
|||||||
disabled={panelInfo.modal}
|
disabled={panelInfo.modal}
|
||||||
onEnded={onEnded}
|
onEnded={onEnded}
|
||||||
noAutoPlay={cannotPlay}
|
noAutoPlay={cannotPlay}
|
||||||
autoCloseTimeout={6000}
|
autoCloseTimeout={10000}
|
||||||
onBackButton={onClickBack}
|
onBackButton={onClickBack}
|
||||||
spotlightDisabled={panelInfo.modal}
|
spotlightDisabled={panelInfo.modal}
|
||||||
isYoutube={isYoutube}
|
isYoutube={isYoutube}
|
||||||
|
|||||||
Reference in New Issue
Block a user