mobile chrome fires resize event on scroll

前端 未结 7 1229
独厮守ぢ
独厮守ぢ 2020-11-30 23:20

I\'m using the chrome mobile browser on galaxy s4, android 4.2.2 and for some reason every time I scroll the page down, it fires a resize event verified by the scaling of im

7条回答
  •  囚心锁ツ
    2020-12-01 00:10

    Just for curiosity, I was trying to reproduce it and if I'm correct this is caused by the navigation chrome bar.

    When you scroll down and chrome hides the browser navigation bar it produces a window resize, but this is correct, because after that we have a bigger window size due to the free space that the browser nav bar has left.

    Related article: https://developers.google.com/web/updates/2016/12/url-bar-resizing

提交回复
热议问题