feat!: change gestures to look at selected when dragging (#7991)

* feat: change gestures to look at selected when dragging

* chore: fix tests

* chore: format

* chore: PR comments
This commit is contained in:
Beka Westberg
2024-04-04 15:52:43 +00:00
committed by GitHub
parent e75a4fb1d3
commit ed403d0b77
14 changed files with 88 additions and 200 deletions

View File

@@ -74,9 +74,7 @@ suite('Comment Deserialization', function () {
simulateClick(this.workspace.trashcan.svgGroup);
// Place from trashcan.
simulateClick(
this.workspace.trashcan.flyout.svgGroup_.querySelector(
'.blocklyDraggable',
),
this.workspace.trashcan.flyout.svgGroup_.querySelector('.blocklyPath'),
);
chai.assert.equal(this.workspace.getAllBlocks().length, 1);
// Check comment.
@@ -113,7 +111,7 @@ suite('Comment Deserialization', function () {
const toolbox = this.workspace.getToolbox();
simulateClick(toolbox.HtmlDiv.querySelector('.blocklyTreeRow'));
simulateClick(
toolbox.getFlyout().svgGroup_.querySelector('.blocklyDraggable'),
toolbox.getFlyout().svgGroup_.querySelector('.blocklyPath'),
);
chai.assert.equal(this.workspace.getAllBlocks().length, 1);
// Check comment.