mobile chrome fires resize event on scroll

前端 未结 7 1214
独厮守ぢ
独厮守ぢ 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-11-30 23:48

    Turns out there are many things which can fire resize in various mobile browsers.

    I know it's not ideal to link to an external resource, but QuirksMode has a readable table that I don't want to duplicate (or maintain) here: http://www.quirksmode.org/dom/events/resize_mobile.html

    Just to give an example, the one that was getting us: apparently in many browsers, opening the soft keyboard fires the event.

提交回复
热议问题