Skip to content

Commit

Permalink
Merge pull request #555 from EliteMasterEric/patch-1
Browse files Browse the repository at this point in the history
setPosition now takes a Float to allow animating with decimal values
  • Loading branch information
ianharrigan authored Dec 13, 2023
2 parents fb02576 + d00cb4c commit b370182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haxe/ui/animation/AnimationBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AnimationBuilder {
return this;
}

public function setPosition(time:Float, propertyName:String, value:Int, absolute:Bool = false):AnimationBuilder {
public function setPosition(time:Float, propertyName:String, value:Float, absolute:Bool = false):AnimationBuilder {
var kf = findKeyFrameAtTime(time);
if (kf == null) {
kf = new AnimationKeyFrame();
Expand Down Expand Up @@ -122,4 +122,4 @@ class AnimationBuilder {
}
return null;
}
}
}

0 comments on commit b370182

Please sign in to comment.