Skip to content

Commit

Permalink
Added fix for AnimatedButton firing twice
Browse files Browse the repository at this point in the history
  • Loading branch information
buba447 committed Apr 18, 2019
1 parent 0fe552d commit c1f4904
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lottie-swift/src/Public/iOS/AnimatedButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ final public class AnimatedButton: AnimatedControl {
if let playrange = rangesForEvents[touchEvent.rawValue] {
animationView.play(fromProgress: playrange.from, toProgress: playrange.to, loopMode: LottieLoopMode.playOnce)
}
sendActions(for: touchEvent)
return true
}

Expand All @@ -63,6 +62,5 @@ final public class AnimatedButton: AnimatedControl {
if let playrange = rangesForEvents[touchEvent.rawValue] {
animationView.play(fromProgress: playrange.from, toProgress: playrange.to, loopMode: LottieLoopMode.playOnce)
}
sendActions(for: touchEvent)
}
}

0 comments on commit c1f4904

Please sign in to comment.