-
Notifications
You must be signed in to change notification settings - Fork 24.2k
-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
onScroll event not firing for multiline TextInput #20309
Comments
This is only an "Old Version" because I used the recommended create-react-native-app tool, I can verify that this problem still exists on 0.56.0 |
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while. If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here. |
This issue is still happening on RN 0.57.8 Quick fix: In Add #pragma mark - UIScrollViewDelegate
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
id<RCTBackedTextInputDelegate> delegate = _backedTextInputView.textInputDelegate;
if ([delegate respondsToSelector:@selector(scrollViewDidScroll:)]) {
[delegate performSelector:@selector(scrollViewDidScroll:) withObject:scrollView];
}
}
|
@zubko that fix works great. this seems worthy of a PR into RN to fix this? EDIT: looks like this has been added, disregard |
Environment
Environment:
OS: macOS High Sierra 10.13.4
Node: 6.9.0
Yarn: 1.6.0
npm: 3.10.8
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 2.3 AI-162.3934792
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ~0.55.2 => 0.55.4
Description
I noticed recently that multiline controls stopped firing the onScroll event when the user slides their thumb/finger to scroll the contents of the input. See the app linked in Reproducible Demo, it is as simple as can be. The console shows the output 'focusing' onFocus, but it does not display anything for onScroll.
Reproducible Demo
https://github.com/dereksweet/MultilineScrollTest
The text was updated successfully, but these errors were encountered: