홈패널 여백 부분 확인용 05/10 2

This commit is contained in:
junghoon86.park
2024-05-10 17:42:21 +09:00
parent 5eb12190a7
commit eb43543d16
5 changed files with 10 additions and 12 deletions

View File

@@ -93,9 +93,7 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
const orderStyle = useMemo(() => ({ order: order }), [order]);
const handleScrollRight = (e) => {
const container = e.currentTarget?.parentNode;
const gap = 18;
const padding = 60;
const x = container.scrollWidth - (container.clientWidth + padding - gap);
const x = container.scrollWidth - container.clientWidth;
setTimeout(() => {
scrollLeft({ x, animate: true });