From d1592692bd0dca42cb195351e6f2a345a14c23da Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 15 Nov 2017 14:08:20 +0100 Subject: [PATCH] Update: CC - Mouse Move - Moorcow (hibvg7v1d0.js) 20 bytes modified --- hibvg7v1d0.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;