cordova-plugin-keyboard
cordova-plugin-keyboard copied to clipboard
[IOS] View isn't shrunk until scrolling stops
Problem
We've built a chat app, and if you start scrolling, and open the keyboard while scrolling, the view isn't shrunk until scrolling stops. This is with the scroll behavior at -webkit-overflow-scrolling: touch.
If one has a footer, it will be covered by the keyboard until scrolling stops.
Expected behavior
If possible the view should resize immediately, no matter what event is happening.
@larssn, do you have a simple example that shows this happening? I've never seen it before. My guess is the js-native bridge is not active while scrolling is happening, so a true fix may be difficult.
How would you like me to make an example? We're talking IOS here; examples are equally difficult. :)
Or do you mean a gif?
Ideally html/js that I could put into a simple cordova app to test.
Alright, shouldn't be too difficult. I'll see if I have time this weekend.
Sorry, I lost track of this task.
In any case, we found a workaround, which is set overflow: hidden when the keyboard opens, which forces momentum scrolling to halt. The view-container then updates its size immediately.
I'm kinda strapped for time atm, so I cant promise when I'll have an example ready.