window.scrollTo not working in phonegap - alternative solution or workaround?

后端 未结 3 1451
我寻月下人不归
我寻月下人不归 2021-01-01 05:47

I\'ve written a rather basic js function that programatically and automatically aligns the iPhone keyboard perfectly underneath each and every input field t

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 06:41

    you can try and use the animate and scrollTop property to scroll It looks something like this:

    $("html, body").animate({ scrollTop: "The value to scroll to" });
    

    Hope this helps.

提交回复
热议问题