WICG / visual-viewport

A proposal to add explicit APIs to the Web for querying and setting the visual viewport
https://wicg.github.io/visual-viewport/
MIT License
177 stars 28 forks source link

Specify resize and scroll event ordering #80

Closed bokand closed 2 years ago

bokand commented 2 years ago

This PR changes the event dispatch portion of the spec to instead monkey patch the resize and scroll event dispatch steps in CSSOM-View so that the ordering is clear between the visual viewport's scroll and resize as well as in relation to other pending scroll events.

In both resize and scroll cases, the event on the VisualViewport is fired immediately after the corresponding event on the Document.

(Also fixes minor unrelated ReSpec warnings)

Fixes #66 Fixes #65

bokand commented 2 years ago

@rniwa - Could you please take a look (I can't add you as a reviewer) - do these changes satisfy your concerns in #66 and #65?

bokand commented 2 years ago

Ping @rniwa

Or perhaps @smfr, could you take a look, since you edit CSSOM-View?

bokand commented 2 years ago

Thanks!