Skip to content

Fix midpoint easing at boundary positions - #72

Open
dajiaohuang wants to merge 1 commit into
ajalt:masterfrom
dajiaohuang:fix/midpoint-endpoint-easing
Open

dajiaohuang wants to merge 1 commit into
ajalt:masterfrom
dajiaohuang:fix/midpoint-endpoint-easing

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Implement piecewise midpoint easing behavior when the requested midpoint is at 0 or 1, rather than returning a constant value.
  • Add synthetic boundary-value coverage for both endpoints.

For position=0, the prior implementation returned 1 for every input; for position=1, it returned 0 for every input. Both violated the documented endpoint behavior and collapsed the easing curve.

Validation

  • :test:jvmTest --tests "*EasingFunctionsTest" passed with task-local Gradle home, user home, and temp directories.
  • git diff --check passed.

Tests use synthetic scalar inputs only; no user images, profiles, or external color data were accessed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant