From ddd4a05e5e27a05cd1dd32bcf51b008416b9078f Mon Sep 17 00:00:00 2001 From: jonasengelmann <40031476+jonasengelmann@users.noreply.github.com> Date: Thu, 7 Jul 2022 16:31:35 +0200 Subject: [PATCH] Revert "always return Euclidean modulo of current rotation" This reverts commit 32af983910f84d1fbc15dfa6e13d37d3895a57e6. --- src/viewport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewport.js b/src/viewport.js index 4d8b9c9a..9a058968 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -956,8 +956,8 @@ $.Viewport.prototype = { */ getRotation: function(current) { return current ? - $.euclideanModulo(this.degreesSpring.current.value, 360) : - $.euclideanModulo(this.degreesSpring.target.value, 360); + this.degreesSpring.current.value : + this.degreesSpring.target.value; }, /**