From ea256990eb7ca08f4ea2b50f9ec42a20d27297ef Mon Sep 17 00:00:00 2001 From: optrader Date: Sat, 15 Nov 2025 15:57:16 +0900 Subject: [PATCH] [251115] fix: TScrollerDetail-2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ• ์ปค๋ฐ‹ ์‹œ๊ฐ„: 2025. 11. 15. 15:57:16 ๐Ÿ“Š ๋ณ€๊ฒฝ ํ†ต๊ณ„: โ€ข ์ด ํŒŒ์ผ: 2๊ฐœ โ€ข ์ถ”๊ฐ€: +15์ค„ โ€ข ์‚ญ์ œ: -51์ค„ ๐Ÿ“ ์ˆ˜์ •๋œ ํŒŒ์ผ: ~ com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js ~ com.twin.app.shoptime/src/views/DetailPanel/components/TScroller/TScrollerDetail.jsx ๐Ÿ”ง ์ฃผ์š” ๋ณ€๊ฒฝ ๋‚ด์šฉ: โ€ข UI ์ปดํฌ๋„ŒํŠธ ์•„ํ‚คํ…์ฒ˜ ๊ฐœ์„  โ€ข ์ฝ”๋“œ ์ •๋ฆฌ ๋ฐ ์ตœ์ ํ™” Performance: ์ฝ”๋“œ ์ตœ์ ํ™”๋กœ ์„ฑ๋Šฅ ๊ฐœ์„  ๊ธฐ๋Œ€ --- .../components/VideoPlayer/VideoPlayer.v3.js | 30 +++++++------- .../components/TScroller/TScrollerDetail.jsx | 39 +------------------ 2 files changed, 17 insertions(+), 52 deletions(-) diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js index e5f6cc23..a2d32cdf 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js +++ b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js @@ -2559,21 +2559,21 @@ const VideoPlayerBase = class extends React.Component { ) : null} - {!panelInfo.modal && ( - - )} + ); diff --git a/com.twin.app.shoptime/src/views/DetailPanel/components/TScroller/TScrollerDetail.jsx b/com.twin.app.shoptime/src/views/DetailPanel/components/TScroller/TScrollerDetail.jsx index f017a593..25bd410f 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/components/TScroller/TScrollerDetail.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/components/TScroller/TScrollerDetail.jsx @@ -4,23 +4,12 @@ import classNames from 'classnames'; import { useSelector } from 'react-redux'; import { off, on } from '@enact/core/dispatcher'; -import { is } from '@enact/core/keymap'; import { Job } from '@enact/core/util'; import Scroller from '@enact/sandstone/Scroller'; -import Spotlight from '@enact/spotlight'; -import SpotlightContainerDecorator from '@enact/spotlight/SpotlightContainerDecorator'; import AutoScrollAreaDetail, { POSITION } from '../AutoScrollAreaDetail/AutoScrollAreaDetail'; import css from './TScrollerDetail.module.less'; -const ScrollerContainer = SpotlightContainerDecorator( - { - enterTo: 'default-element', - restrict: 'self-only', - }, - 'div' -); - /** * DetailPanel ์ „์šฉ TScroller - ์ปค์Šคํ…€ ์Šคํฌ๋กค๋ฐ” ๊ตฌํ˜„ * onScroll* event can't use Callback dependency @@ -194,31 +183,8 @@ const TScrollerDetail = forwardRef( } }, [direction]); - // ์Šคํฌ๋กค๋ฐ”์— ํฌ์ปค์Šค๊ฐ€ ์žˆ์„ ๋•Œ arrow up/down์„ ์ฒ˜๋ฆฌํ•˜์—ฌ ํฌ์ปค์Šค ์œ ์ง€ - const handleScrollerKeyDown = useCallback( - (e) => { - const isUp = is('up')(e); - const isDown = is('down')(e); - - // arrow up/down์ผ ๋•Œ๋งŒ ์ฒ˜๋ฆฌ - if ((isUp || isDown) && direction === 'vertical') { - // ํ˜„์žฌ ํฌ์ปค์Šค๋œ ์š”์†Œ๊ฐ€ ์Šคํฌ๋กค๋ฐ”์ธ์ง€ ํ™•์ธ - const current = Spotlight.getCurrent(); - if (current && current.getAttribute('aria-label')?.includes('scroll')) { - // ์Šคํฌ๋กค๋ฐ”์— ํฌ์ปค์Šค๊ฐ€ ์žˆ์œผ๋ฉด ๊ธฐ๋ณธ ๋™์ž‘ ๋ฐฉ์ง€ํ•˜๊ณ  ํฌ์ปค์Šค ์œ ์ง€ - e.preventDefault(); - e.stopPropagation(); - } - } - }, - [direction] - ); - return ( - +
@@ -259,7 +224,7 @@ const TScrollerDetail = forwardRef( cursorVisible={cursorVisible} /> ))} - +
); } );