Skip to content

Commit

Permalink
fix: set animation value to final offset for finish animation on slid…
Browse files Browse the repository at this point in the history
…eanimation (#10)

Co-authored-by: K Tejeshwar Reddy <[email protected]>
  • Loading branch information
rktejesh and K Tejeshwar Reddy authored Sep 5, 2024
1 parent 27b26aa commit 7b3fdf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/components/wrapper/SlideAnimationWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class SlideAnimationWrapper extends BaseAnimationWrapper<SlideAnimationPr

public finishAnimation(): void {
this.stopAnimation();
this.translate.setValue(this._getFinalTranslateValue(this.props));
}

protected renderAnimation(content: React.ReactNode): React.ReactNode {
Expand Down

0 comments on commit 7b3fdf5

Please sign in to comment.