[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add block drag strategy #7970

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

BeksOmega
Copy link
Collaborator
@BeksOmega BeksOmega commented Mar 28, 2024

The basics

The details

Resolves

Fixes #7840

Proposed Changes

Adds a block drag strategy to confirm to the new dragging API. Most of this is just taken from the existing block dragger.

Test Coverage

Tested with following PRs that change the gesture system. Once those are in I can do some more thorough testing.

Documentation

N/A

Additional Information

Dependent on #7968

@github-actions github-actions bot added the PR: feature Adds a feature label Mar 28, 2024
@github-actions github-actions bot added PR: feature Adds a feature and removed PR: feature Adds a feature labels Mar 28, 2024
core/dragging/block_drag_strategy.ts Outdated Show resolved Hide resolved
core/dragging/block_drag_strategy.ts Show resolved Hide resolved
const {local: currLocal, neighbour: currNeighbour} = currCandiate;
const localPos = new Coordinate(currLocal.x, currLocal.y);
const neighbourPos = new Coordinate(currNeighbour.x, currNeighbour.y);
const distance = Coordinate.distance(
Copy link
Collaborator

Choose a reason for hiding this comment

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

distance -> currDistance

@BeksOmega BeksOmega marked this pull request as ready for review March 28, 2024 22:41
@BeksOmega BeksOmega requested a review from a team as a code owner March 28, 2024 22:41
@BeksOmega BeksOmega merged commit 8b6e9d8 into google:rc/v11.0.0 Mar 28, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants