Skip to content

feat: 수평 스크롤 및 중첩 스크롤 구조 지원 #39

Description

@bae080311

문제

현재 ScrollManager는 수직 스크롤에만 최적화되어 있어 수평 스크롤 또는 수평+수직 중첩 스크롤 구조에서는 동작하지 않습니다.

  • scrollToelementRect.top 기반으로 수직 위치만 계산
  • currentScrollTopwindow.scrollY / element.scrollTop 만 추적
  • getSections의 정렬 기준도 getBoundingClientRect().top (수직 전용)
  • 수평 관련 코드(scrollLeft, left) 없음

기대 동작

  • ScrollOptionsaxis?: 'vertical' | 'horizontal' 옵션 추가
  • axis: 'horizontal' 설정 시 scrollLeft 기준으로 위치 계산 및 스크롤 이동
  • getSections 정렬도 axis에 따라 left / top 기준 전환
  • 중첩 스크롤 컨테이너(root 옵션)와 함께 수평 모드 동작 보장

영향 범위

packages/core/src/ScrollManager.ts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions