홈 마지막 아이템 선택시에 여백 부분 처리건.
This commit is contained in:
@@ -93,7 +93,7 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
|
||||
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
||||
const handleScrollRight = (e) => {
|
||||
const container = e.currentTarget?.parentNode;
|
||||
const x = container.scrollWidth - container.clientWidth;
|
||||
const x = container.scrollWidth - container.clientWidth + 60;
|
||||
|
||||
setTimeout(() => {
|
||||
scrollLeft({ x, animate: true });
|
||||
@@ -145,11 +145,13 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
|
||||
)}
|
||||
|
||||
{drawChk && (
|
||||
<SpottableComponent
|
||||
<div
|
||||
className={css.addItem}
|
||||
onClick={handleMoreCardClick}
|
||||
onFocus={handleScrollRight}
|
||||
></SpottableComponent>
|
||||
>
|
||||
<SpottableComponent className={css.displayBox}></SpottableComponent>
|
||||
</div>
|
||||
)}
|
||||
</TScroller>
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user