jQuery Mobile prevent scroll-to-top before page transition?

前端 未结 6 1277
一生所求
一生所求 2020-12-06 01:02

When I click on a list-item, to go to another page, the current page jumps to the top of the screen before transitioning to the next page.

This problem occured in jQ

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 01:47

    Solution to prevent scrool to top is:

    body onload="$.mobile.silentScroll(window.scrollY);"

提交回复
热议问题