mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fixed regression issue: rotate() doesn't reset after 360 degrees rotation
This commit is contained in:
@ -262,8 +262,7 @@ export class Animation extends common.Animation implements definition.Animation
|
||||
};
|
||||
propertyNameToAnimate = "transform.rotation";
|
||||
originalValue = nativeView.layer.valueForKeyPath("transform.rotation");
|
||||
if (originalValue === 0 && animation.target.rotate !== undefined &&
|
||||
animation.target.rotate !== 0 && Math.floor(value / 360) - value / 360 === 0) {
|
||||
if (animation.target.rotate !== undefined && animation.target.rotate !== 0 && Math.floor(value / 360) - value / 360 === 0) {
|
||||
originalValue = animation.target.rotate * Math.PI / 180;
|
||||
}
|
||||
value = value * Math.PI / 180;
|
||||
|
Reference in New Issue
Block a user