We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90559de commit 2f46f9dCopy full SHA for 2f46f9d
src/Sprite.js
@@ -634,7 +634,7 @@ export class Sprite extends SpriteBase {
634
keepInFence(newX, newY) {
635
// https://github.com/LLK/scratch-vm/blob/develop/src/sprites/rendered-target.js#L949
636
const fence = this.stage.fence;
637
- const bounds = this._project.renderer.getBoundingBox(this);
+ const bounds = this._project.renderer.getTightBoundingBox(this);
638
bounds.left += newX - this.x;
639
bounds.right += newX - this.x;
640
bounds.top += newY - this.y;
0 commit comments