mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
always return Euclidean modulo of current rotation
This commit is contained in:
parent
3cdd94e465
commit
32af983910
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user