react-native-keyboard-input icon indicating copy to clipboard operation
react-native-keyboard-input copied to clipboard

ScrollView lags behind when keyboard is opened.

Open thorbenandresen opened this issue 8 years ago • 3 comments

Hey @artald , I can confirm that the scrollview lagging behind issue on keyboard has been introduced keyboard-tracking-view 3.0.10.

Here is a video of the lag

We currently unblocked ourselves by explicilty pointing to keyboard-tracking-view 3.0.9.

I will try come up with repro in the example app soon.

thorbenandresen avatar May 23 '17 20:05 thorbenandresen

Hey, @Thorbenandresen,

If this issue was indeed introduced in keyboard-tracking-view 3.0.10 (which it most likely is if it worked for you properly on 3.0.9), then it must also be the cause for #23.

It's strange because we checked a couple of use-cases and didn't have any problems. Demo project works well and other projects too. We should probably add some more extreme cases to our demos and add some e2e tests.

One of the differences I can think of: on the demo project we have RN44, on the other projects I tested we still use RN38.

Thanks so much for the effort in providing a repro! It's pretty hard to understand how this lag exactly looks like and what scroll behavior is being used, so a repro demo would greatly help to solve these issues. If it's not too much to ask - maybe you can add a short gif just so we can have an idea what to look for until we have a repro.

artald avatar May 23 '17 21:05 artald

@artald - thanks, I have updated the initial post with a video illustrating the issue.

thorbenandresen avatar May 23 '17 22:05 thorbenandresen

@Thorbenandresen that's great, thanks for the video!

What scroll behavior are you using here? Scroll to bottom or fixed offset?

In 3.0.10 we noticed a really small delay (I think only with scroll to bottom, but not sure), the same as you get in iMessages when you open the keyboard for example. We thought it's a small secrafice for the other benefits and all the other cases it did fix. That said, the lag in your video is way more noticeable than what we saw so I hope we have a repro... thanks!

artald avatar May 24 '17 06:05 artald