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

fix(behaviors): fix drag-canvas #6002

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: update relative test case
  • Loading branch information
Aarebecca committed Jul 9, 2024
commit 5da35b3b72b9ada93d40e0c6deebed2cfb81a56b
2 changes: 2 additions & 0 deletions packages/g6/__tests__/bugs/focus-element.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe('focus element', () => {

await graph.draw();

graph.emit(CanvasEvent.DRAG_START, { targetType: 'canvas' });
graph.emit(CanvasEvent.DRAG, { movement: { x: 100, y: 100 }, targetType: 'canvas' });
graph.emit(CanvasEvent.DRAG_END);

await expect(graph).toMatchSnapshot(__filename, 'focus-before-drag');

Expand Down
Loading