홈패널 여백 부분 확인용 05/10 1
This commit is contained in:
@@ -93,17 +93,9 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
|
||||
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
||||
const handleScrollRight = (e) => {
|
||||
const container = e.currentTarget?.parentNode;
|
||||
|
||||
let gap = scaleW(18);
|
||||
let itemWidth = scaleW(324);
|
||||
let moreItemWidth = scaleW(198);
|
||||
let containerBoxWidth = scaleW(1740);
|
||||
let itemLength = bestSellerDatas?.length;
|
||||
|
||||
const x =
|
||||
(itemWidth + gap) * itemLength +
|
||||
(moreItemWidth + gap) -
|
||||
containerBoxWidth;
|
||||
const gap = 18;
|
||||
const padding = 60;
|
||||
const x = container.scrollWidth - (container.clientWidth + padding - gap);
|
||||
|
||||
setTimeout(() => {
|
||||
scrollLeft({ x, animate: true });
|
||||
|
||||
Reference in New Issue
Block a user