diff --git a/hibvg7v1d0.js b/hibvg7v1d0.js index d305468..637e64d 100644 --- a/hibvg7v1d0.js +++ b/hibvg7v1d0.js @@ -12,8 +12,8 @@ if (!this.initialized) { this.initialized = true; } -this.mouse.x = (event.offsetX / event.target.width ) * 2 - 1; -this.mouse.y = -(event.offsetY / event.target.height) * 2 + 1; +this.mouse.x = (data.event.offsetX / data.event.target.width ) * 2 - 1; +this.mouse.y = -(data.event.offsetY / data.event.target.height) * 2 + 1; this.camera.lookAt.x = this.mouse.x * 20; this.camera.lookAt.y = this.mouse.y * 20;