Skip to content

Commit

Permalink
Fixed Frame Rate Limiter Not Working When Transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Aug 19, 2024
1 parent 1f667fe commit 1be1c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ColorfulX/AnimatedMulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ open class AnimatedMulticolorGradientView: MulticolorGradientView {

@inline(__always)
public func shouldRenderNextFrameWithinSynchornization() -> Bool {
guard frameLimiterShouldScheduleNextFrame() else { return false }
// if transition not completed, keep ticking until complete
if !isColorTransitionCompleted() { return true }
guard frameLimiterShouldScheduleNextFrame() else { return false }
guard speed > 0 || renderInputWasModified else { return false }
return true
}
Expand Down

0 comments on commit 1be1c07

Please sign in to comment.