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

When the scrollview controls the scrollTo of another scrollview, it does not refresh in a timely manner. It seems that the delay is large #35251

Closed
1974892005 opened this issue Nov 8, 2022 · 5 comments
Labels
Component: ScrollView Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@1974892005
Copy link

Description

When the scrollview controls the scrollTo of another scrollview, it does not refresh in a timely manner. It seems that the delay is large

Version

0.69.6

Output of npx react-native info

System:
OS: Windows 10 10.0.22000
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1155G7 @ 2.50GHz
Memory: 6.24 GB / 15.79 GB
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.14.0 - ~\AppData\Roaming\npm\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Disabled
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 11.0.16.1
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.6 => 0.69.6
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

<ScrollView
horizontal={true}
bounces={false}
scrollEventThrottle={16}
onScroll={(event) => {
let offsetX = event.nativeEvent.contentOffset.x;
setScrollX(offsetX)
props.RightCoreRef.current.scrollTo({ x: offsetX, y: 0, animated: false })
}}
>

// table Container

<ScrollView
horizontal={true}
showsHorizontalScrollIndicator={false}
ref={RightCoreRef}
bounces={false}
scrollEnabled={false}

// table title

Snack, code example, screenshot, or link to a repository

256ffd55ee364ed7addae564a6af34ae-Trim

@Sanath91009
Copy link

Yeah facing the same issue. Just and idea , How about having all components in 1 scroll view ?

@1974892005
Copy link
Author

Fixed header and fixed first column cannot be used together

@Sanath91009
Copy link

Please let me know if you overcame this problem @1974892005 .

@github-actions
Copy link

github-actions bot commented May 8, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 8, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: ScrollView Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants