always return Euclidean modulo of current rotation

This commit is contained in:
jonasengelmann 2022-06-29 20:32:47 +02:00
parent 3cdd94e465
commit 32af983910

View File

@ -956,8 +956,8 @@ $.Viewport.prototype = {
*/
getRotation: function(current) {
return current ?
this.degreesSpring.current.value :
this.degreesSpring.target.value;
$.euclideanModulo(this.degreesSpring.current.value, 360) :
$.euclideanModulo(this.degreesSpring.target.value, 360);
},
/**