From b1cf96d00ad6c79eb8565912e897d239c200ffff Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 19 Nov 2017 20:09:11 +0100 Subject: [PATCH] Update: CC - Touch Move (c55930et90.js) 242 bytes modified --- c55930et90.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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) {