Closed ZachBird closed 4 years ago
innerWidth/innerHeight represent the browser window's layout viewport. Issue #26 discusses whether the implicit root should be the layout viewport or the visual viewport, with the balance of opinion favoring the visual viewport. The IntersectionObserver spec needs to be updated, but I'm going to close this issue and attach any PR's to issue #26.
if not pass root parameter when create instance, dependence on mdn document
so, in 「_getRootRect」 function,if without 「this.root」, may the rootRect should be: