From 6130e9f11038852a68f5c1116ff5adc5c486de21 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 17 Jan 2018 11:57:30 +0100 Subject: [PATCH] Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 108 bytes modified --- opxis1pjmo.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 019c5d2..7e28181 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -10,14 +10,18 @@ if (!this.initialized) { this.initialized = true; } -this.animationSystem.stop(); -this.animationSystem.start(); - +//this.animationSystem.stop(); +//this.animationSystem.start(); +/* if (data.event.deltaY > 0) { this.cylinder.rotation.x += 0.897597901; } else { this.cylinder.rotation.x -= 0.897597901; } +*/ +this.cylinder.rotation.x += data.event.deltaY * 0.01; + +GameLib.Event.Emit(GameLib.Event.MOUSE_UP); //mesh.rotation.x += data.event.deltaY * 0.001; //mesh.updateInstance('rotation');