MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / resizeTick

Method resizeTick

src/scale-manager/ResizeHelper.js:76–82  ·  view source on GitHub ↗

* For older browsers, specifically for IE11, starts a loop making sure resize events are fired. * @memberof ResizeHelper * @private

()

Source from the content-addressed store, hash-verified

74 * @private
75 */
76 resizeTick() {
77 // Make sure references to the window dimensions are up to date.
78 const resolution = this.getWindowResolution();
79
80 // Update the aspect ratio property.
81 this.aspectRatio.value = Math.round((resolution.height / resolution.width) * 1000) * 0.0001;
82 }
83
84 /**
85 * Dispatches window resize events if the ResizeHelper is manually handling a resize loop.

Callers 1

constructorMethod · 0.95

Calls 1

getWindowResolutionMethod · 0.95

Tested by

no test coverage detected