cordova-plugin-keyboard icon indicating copy to clipboard operation
cordova-plugin-keyboard copied to clipboard

[IOS] View isn't shrunk until scrolling stops

Open larssn opened this issue 8 years ago • 5 comments

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 avatar Jun 13 '17 07:06 larssn

@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.

cjpearson avatar Jun 14 '17 21:06 cjpearson

How would you like me to make an example? We're talking IOS here; examples are equally difficult. :)

Or do you mean a gif?

larssn avatar Jun 14 '17 21:06 larssn

Ideally html/js that I could put into a simple cordova app to test.

cjpearson avatar Jun 14 '17 21:06 cjpearson

Alright, shouldn't be too difficult. I'll see if I have time this weekend.

larssn avatar Jun 14 '17 21:06 larssn

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.

larssn avatar Jul 14 '17 10:07 larssn