Prevent “overscroll” on fullscreen web app like Google Maps do

风格不统一 提交于 2019-12-06 06:18:22

问题


Chrome on Mac has a bug that will be probably fixed in version 42 41: Switching tab affects “overscroll” (aka elastic rubber band)

tl;dr:

  1. Chrome on Mac has this annoying "overscroll" aka rubber band effect on the whole document.
  2. It can be prevented with CSS (SO post).
  3. When you go to http://wikibudgets.org/sankey the overscroll is disabled - try to scroll to zoom the diagram, the document stays in place.
  4. when you switch to any other tab and then go back the overscroll effect is not disabled any more - try to scroll to zoom the diagram, the document jumps up and down.

5. Google Maps website does not suffer from this bug so there must be a workaround.

Any idea or advice is welcome.


回答1:


It seems the bug is already fixed in Version 41.0.2272.76 (64-bit)



来源:https://stackoverflow.com/questions/28836291/prevent-overscroll-on-fullscreen-web-app-like-google-maps-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!