Skip to content

Commit

Permalink
fix: for trackJS issue (binary-com#10247)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Sep 27, 2023
1 parent da34f4d commit 0e1ddb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bot-skeleton/src/scratch/dbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class DBot {
this.workspace.addChangeListener(event => updateDisabledBlocks(this.workspace, event));
this.workspace.addChangeListener(event => this.workspace.dispatchBlockEventEffects(event));
this.workspace.addChangeListener(event => {
if (event.type === 'endDrag') validateErrorOnBlockDelete();
if (event.type === 'endDrag' && !is_mobile) validateErrorOnBlockDelete();
});

Blockly.derivWorkspace = this.workspace;
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-skeleton/src/scratch/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const matchTranslateAttribute = translateString => {
};

export const extractTranslateValues = () => {
const transform_value = Blockly?.derivWorkspace?.trashcan.svgGroup_.getAttribute('transform');
const transform_value = Blockly?.derivWorkspace?.trashcan?.svgGroup_.getAttribute('transform');
const translate_xy = matchTranslateAttribute(transform_value);

if (!translate_xy) {
Expand Down

0 comments on commit 0e1ddb1

Please sign in to comment.