diff --git a/c55930et90.js b/c55930et90.js index 219f694..528509a 100644 --- a/c55930et90.js +++ b/c55930et90.js @@ -1,11 +1,24 @@ -var touch = data[Object.keys(data)[0]]; - -if (data.meta.zoom ) { - console.log('zoom'); +if (!this.entityLoaded) { + return; } -if (data.meta.outward) { - console.log('outward'); +var touch = data[Object.keys(data)[0]]; + +if (!this.initialized) { + this.dom = this.entityLoaded.dom; + this.initialized = true; +} + +if (data.meta.zoom || data.meta.outward) { + if (!this.dom.fullscreen) { + this.dom.requestFullscreen(); + } +} + +if (data.meta.pinch || data.meta.inward) { + if (this.dom.fullscreen) { + this.dom.exitFullscreen(); + } } if (!this.initialized) {