javascript window.scrollto issue on Ipad

前端 未结 1 1485
北恋
北恋 2021-01-23 07:33

I have a javascript that includes following line of code:

window.scrollto(x,y);

where x and y are the coordinates of the position where there s

相关标签:
1条回答
  • 2021-01-23 08:27

    do this:

    window.setTimeout(function() {window.scrollTo(x,y);}, 0);

    also be aware of the case, scrollto is different to scrollTo in javascript.

    0 讨论(0)
提交回复
热议问题