The scrolling plug-in in MUI write APP is on a page with many input boxes. After clicking on the input box, the page will not slide up.

the scrolling plug-in in MUI write APP is on a page with a lot of input boxes. After clicking on the input box, the page is pushed up by the keyboard, and the page can"t slide up and you can"t see the content above.
on ios, you can slide up after exiting the soft keyboard, but on Android, you can"t slide up either. You have to slide to the bottom of the page, and then slide up again.

Mar.11,2021

first add the onresize event in body to listen to whether the soft keyboard pops up. The mui ('.mui-scroll-wrapper'). Scroll (). Element.scrolltop value increases when the soft keyboard pops up, but the soft keyboard withdraws this value and does not return to zero so that the page cannot slide to the top. You can set mui (' .mui-scroll-wrapper'). Scroll (). Element.scrollTop=0; to resume normal sliding) when the soft keyboard is withdrawn.

Menu