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

<ScrollView /> horizontal cannot be scroll using drag on desktop browsers #2122

Closed
kopax-polyconseil opened this issue Sep 5, 2021 · 2 comments
Labels
needs: issue template Issue is missing the required issue template fields resolution: cannot reproduce The reported issue could not be reproduced

Comments

@kopax-polyconseil
Copy link

The problem

We use react-native-web to port our react-native application into a Web application.

I am using a horizontal <ScrollView />.

  • it can't be drag on mobile browsers
  • it is not draggable on desktop browser

We rather not have to use the showsHorizontalScrollIndicator on desktop.

Without it there's no way to scroll unless user hold shift and use the scroll when hovering.

This is not user friendly at all.

How to reproduce

      <ScrollView
        horizontal={true}
        showsHorizontalScrollIndicator={false}
        scrollEventThrottle={200}
        onScroll={onScroll}>
        {items.map(renderItem)}
      </ScrollView>

Expected behavior

I expect the <ScrollView horizontal /> to be scrollable on the web with the onDrag

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.17.1
  • React (version): 17.0.2
  • React Native: 0.64.2
  • Browser: [email protected]
@necolas necolas added the needs: issue template Issue is missing the required issue template fields label Sep 29, 2021
@github-actions
Copy link

⚠️ This issue is missing required fields. To avoid this issue being closed, please provide the required information as described in the ISSUE TEMPLATE.

@necolas
Copy link
Owner

necolas commented Sep 29, 2021

it can't be drag on mobile browsers

Can't reproduce: https://codesandbox.io/s/angry-field-twi3l

it is not draggable on desktop browser

That is normal behavior when using a mouse to interact with a scroll view on web.

@necolas necolas closed this as completed Sep 29, 2021
@necolas necolas added the resolution: cannot reproduce The reported issue could not be reproduced label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: issue template Issue is missing the required issue template fields resolution: cannot reproduce The reported issue could not be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants