Skip to content

Commit

Permalink
Merge pull request #87 from INxST/feature/#43/fix-detail
Browse files Browse the repository at this point in the history
Feature/#43/fix detail
  • Loading branch information
naoki-00-ito authored Aug 13, 2024
2 parents 27e2bd6 + af6b6a9 commit f5ed734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/WorksSlide/scrollSlide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const scrollSlide = ({ wrapper, container, progress, filter }: Args) => {
if (!didEffect.current) {
didEffect.current = true;

const x = window.matchMedia('(min-width: 768px)').matches ? -5 : -1.05;
const x = window.matchMedia('(min-width: 768px)').matches ? -1.3 : -1.05;

const anime = gsap.to(container.current, {
x: getOverflow(container.current) * x,
x: () => getOverflow(container.current) * x,
ease: 'none',
});

Expand Down
2 changes: 1 addition & 1 deletion src/libs/horizontalScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const horizontalScroll = () => {
const container = document.getElementById('horizontal-scroll-container');

const anime = gsap.to(container, {
x: getOverflow(container) * -1,
x: () => getOverflow(container) * -1,
ease: 'none',
});

Expand Down

0 comments on commit f5ed734

Please sign in to comment.