Skip to content

Fix delta calculation at direction change#494

Merged
kurkle merged 1 commit intochartjs:masterfrom
kurkle:delta-credit
May 5, 2021
Merged

Fix delta calculation at direction change#494
kurkle merged 1 commit intochartjs:masterfrom
kurkle:delta-credit

Conversation

@kurkle
Copy link
Copy Markdown
Member

@kurkle kurkle commented May 5, 2021

Fix #493

Delta is cumulated in the same direction only.

While creating tests, I noticed I could not get category scale to step only one tick. This was due to the usage of Math.ceil, that made the stepSize to be 2 at minimum. Changing it to Math.round affected the updated fixture.

@kurkle kurkle added the bug label May 5, 2021
@kurkle kurkle added this to the 1.0.0 milestone May 5, 2021
@kurkle kurkle requested a review from etimberg May 5, 2021 17:53
@kurkle kurkle merged commit 253d01a into chartjs:master May 5, 2021
@kurkle kurkle deleted the delta-credit branch July 1, 2021 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panDelta[] stores movement beyond range

2 participants