diff --git a/src/blocks/scratch3_event.js b/src/blocks/scratch3_event.js index 8e3a302cc..a486bda09 100644 --- a/src/blocks/scratch3_event.js +++ b/src/blocks/scratch3_event.js @@ -63,7 +63,7 @@ class Scratch3EventBlocks { } touchingObject (args, util) { - return util.target.touchingObject(args.TOUCHINGOBJECTMENU); + return util.target.isTouchingObject(args.TOUCHINGOBJECTMENU); } hatGreaterThanPredicate (args, util) { diff --git a/src/blocks/scratch3_sensing.js b/src/blocks/scratch3_sensing.js index ff0beac89..9e1d37a50 100644 --- a/src/blocks/scratch3_sensing.js +++ b/src/blocks/scratch3_sensing.js @@ -150,7 +150,7 @@ class Scratch3SensingBlocks { } touchingObject (args, util) { - return util.target.touchingObject(args.TOUCHINGOBJECTMENU); + return util.target.isTouchingObject(args.TOUCHINGOBJECTMENU); } touchingColor (args, util) { diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 6beb72a27..3acd83b0f 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -725,11 +725,11 @@ class RenderedTarget extends Target { } /** - * Return whether touching the mouse, an edge, or a sprite. + * Return whether this target is touching the mouse, an edge, or a sprite. * @param {string} requestedObject an id for mouse or edge, or a sprite name. * @return {boolean} True if the sprite is touching the object. */ - touchingObject (requestedObject) { + isTouchingObject (requestedObject) { if (requestedObject === '_mouse_') { if (!this.runtime.ioDevices.mouse) return false; const mouseX = this.runtime.ioDevices.mouse.getClientX();