Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to allow gestures on both axes within a PagerView #849

Open
maxwelljmckee opened this issue Aug 2, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@maxwelljmckee
Copy link

maxwelljmckee commented Aug 2, 2024

Ask your Question

Here is a simplified code example:

const NewsFeed = ({ content }) => {
  return (
    <PagerView orientation='vertical'>
      {content.map((item) => (
        <ContentCard>
          <PagerView orientation='horizontal'>
            // y-axis gesture should be unlocked
          </PagerView>
        </ContentCard>
      ))
    </PagerView>
  )
}
  • I'm working on a NewsFeed interface that implements nested PagerViews
  • The top-level parent/view-container is a PagerView with orientation='vertical'
  • Some children contain a nested horizontal PagerView that acts as a content carousel
  • I'd like to gesture vertically while touching inside the nested PagerView component
  • However, I'm finding that the y-axis is locked when gesturing inside the horizontal child pager

Is there a way to unlock both gesture axes inside a pager?

@maxwelljmckee maxwelljmckee added the question Further information is requested label Aug 2, 2024
@ManuLpz4
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants