From 704ecec82d4cb63a86c8f00d10ef40e99e9f23cc Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 16 Jan 2018 11:48:03 +0100 Subject: [PATCH] Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 68 bytes modified --- opxis1pjmo.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 1a350d8..4e2afdc 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -8,7 +8,12 @@ if (!this.initialized) { var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq'); -mesh.rotation.x += 0.89; +if (data.event.deltaY > 0) { + mesh.rotation.x += 0.89; +} else { + mesh.rotation.x -= 0.89; +} + //mesh.rotation.x += data.event.deltaY * 0.001; //mesh.updateInstance('rotation');