Skip to content

Commit

Permalink
chore: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Jun 22, 2023
1 parent 53e7b08 commit 94d68c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/scroll-options/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ScrollOptions {
return;
}

// TODO: We should maybe add an accessor for the svgGroup_?
// TODO(blockly/#7157): We should maybe add an accessor for the svgGroup_?
this.wheelEvent_ = Blockly.browserEvents.conditionalBind(
this.workspace_.svgGroup_, 'wheel', this, this.onMouseWheel_);
}
Expand Down
4 changes: 3 additions & 1 deletion plugins/scroll-options/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
* @returns {!Blockly.utils.Coordinate} The current workspace coordinate.
*/
export const getTranslation = (ws) => {
// TODO: We should maybe make getBlockCanvas public?
// TODO(blockly/#7157): We should maybe make getBlockCanvas public?
const translation = ws.svgBlockCanvas_.getAttribute('transform');

// Translation has the format 'translate(x, y)'.
const splitted = translation.split(',');
const x = Number(splitted[0].split('(')[1]);
const y = Number(splitted[1].split(')')[0]);
Expand Down

0 comments on commit 94d68c3

Please sign in to comment.