MCPcopy
hub / github.com/micku7zu/vanilla-tilt.js / updateClientSize

Method updateClientSize

lib/vanilla-tilt.es2015.js:366–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364 }
365
366 updateClientSize() {
367 this.clientWidth = window.innerWidth
368 || document.documentElement.clientWidth
369 || document.body.clientWidth;
370
371 this.clientHeight = window.innerHeight
372 || document.documentElement.clientHeight
373 || document.body.clientHeight;
374 }
375
376 onWindowResize() {
377 this.updateGlareSize();

Callers 4

constructorMethod · 0.95
onWindowResizeMethod · 0.95
VanillaTiltFunction · 0.45
vanilla-tilt.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected