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) { getRotation: function(current) {
return current ? return current ?
this.degreesSpring.current.value : $.euclideanModulo(this.degreesSpring.current.value, 360) :
this.degreesSpring.target.value; $.euclideanModulo(this.degreesSpring.target.value, 360);
}, },
/** /**