just after work, the first time to get input into the box at the bottom of the page, the original idea is fixed, but on the phone obviously there is a problem. After the company inside of my predecessor sent me this article "Web Mobile end Fixed Layout solution ." Since the page does not need the layout described in the article, refer to the idea provided in the article: " because the fixed on the soft keyboard will be invalidated after the page can be scrolled, the page will follow the scroll together." Therefore, if the page cannot scroll, then the fixed element, even if it fails, does not scroll ", in combination with the height of the top area of the page is scaled, choose to use JS in the page initialization when the dynamic calculation settings display the area height of the comment, so you can just put the input area to the bottom, You can bounce normally when you get the focus on Android and most Apple models. In the test of Apple models have 5c,5,6,6+ (the company is currently tested by colleagues on the mobile phone test, on these models), 5c and jailbreak 6 appeared the problem: the first input is not up. Later found to arouse the input method after the entire page can be sliding up and down, since you can swipe, when input to get the focus of the page when the overall slide to the bottom. Added the get focus event after the 5c and jailbreak 6 above the first time can be normal to top up. This thought can happily record under this experience, the fact proves that oneself is too naïve!
If only the simple test to get the focus can be normal, test how many times there is no problem, but the input content is different, this problem is 5c above. The first time you enter plain English without erasing the contents, hide the soft keyboard, and then take the second focus, it will not top up, not up, top not up. The important thing to say three times. Would you like to go and stroll around the Internet? And then found that there is also someone asked the input in the bottom of the question, read the following answer, a classmate replied that the soft keyboard bounce is to time (forget the link), feeling suddenly a flash in the brain: delay sliding to the bottom. To slide to the bottom set a 500 delay, 5c on the good, other models are also good. Although the problem is solved, the reason is still not well understood. Now and then I think of this problem.