We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 084b00d commit 8ff84ebCopy full SHA for 8ff84eb
src/Sprite.js
@@ -509,7 +509,7 @@ export class Sprite extends SpriteBase {
509
keepInFence(newX, newY) {
510
// https://github.com/LLK/scratch-vm/blob/develop/src/sprites/rendered-target.js#L949
511
const fence = this.stage.fence;
512
- const bounds = this._project.renderer.getBoundingBox(this);
+ const bounds = this._project.renderer.getTightBoundingBox(this);
513
bounds.left += newX - this.x;
514
bounds.right += newX - this.x;
515
bounds.top += newY - this.y;
0 commit comments