mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +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) {
|
||||
return current ?
|
||||
this.degreesSpring.current.value :
|
||||
this.degreesSpring.target.value;
|
||||
$.euclideanModulo(this.degreesSpring.current.value, 360) :
|
||||
$.euclideanModulo(this.degreesSpring.target.value, 360);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user