The Viewport Watcher

The singleton object viewportWatcher is an instance of EventHub and fires the events "resize" and "scroll" when the viewport is resized or scrolled, respectively.

Superclasses

viewportWatcher is an instance of EventHub.

Events

resize

Fired when the DOM "resize" event is fired on document.body. DOM events are throttled to a maximum of one event every 10ms.

scroll

Fired when the DOM "sroll" event is fired on document.body. DOM events are throttled to a maximum of one event every 10ms.