Skip to content

fix(Mover): Fixing Mover grid behaviour and adding tests for it.#196

Merged
mshoho merged 7 commits intomasterfrom
mover-grid-fix
Oct 19, 2022
Merged

fix(Mover): Fixing Mover grid behaviour and adding tests for it.#196
mshoho merged 7 commits intomasterfrom
mover-grid-fix

Conversation

@mshoho
Copy link
Member

@mshoho mshoho commented Oct 6, 2022

The algorithm to calculate vertically next element in grid was insufficient. Replacing it with a better working one and adding tests.

ling1726
ling1726 previously approved these changes Oct 12, 2022
Comment on lines +630 to +639
function getDistance(
ax1: number,
ay1: number,
ax2: number,
ay2: number,
bx1: number,
by1: number,
bx2: number,
by2: number
): number {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest a nicer form for this

getDistance({x1, y1, x2, y2}, {x1, y1, x2, y2})

@ling1726 ling1726 dismissed their stale review October 13, 2022 04:59

found another bug

@mshoho mshoho merged commit e2645c3 into master Oct 19, 2022
@mshoho mshoho deleted the mover-grid-fix branch October 19, 2022 10:51
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.

2 participants