Skip to content

if set scrollenabled false, ScrollView scrollTo in safari can't scroll. #2303

Open
@wolf-cao

Description

@wolf-cao

if i set scrollEnabled false, scrollView can't scroll with method scrollTo in safari. Then i set it true, i can use scrollTo to scroll.
But for me, i don't want to scroll with finger to sroll left or scroll right.
i want to disable it. so i can use scrollTo to scroll my page.

But chrome works well.

your example in your website can see this bug. if you click disabled button, in safari the 'to start' or 'to end' or 'to 50px' buttons will be not work.
url: https://necolas.github.io/react-native-web/docs/scroll-view/

Expected behavior

if set scrollEnabled false, i also can use method scrollTo to scroll in safari.

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

  • React Native (version): 0.62.2
  • React Native web (version): 0.18.0
  • React (version): 16.11.0
  • Browser: safari 15.4 (17613.1.17.1.13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions