From 54d5be8bbaff305a85f1773b031ff877e505fb32 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 20 Apr 2018 10:45:34 -0400 Subject: [PATCH] Do not bother repositioning bubbles for invisible sprites --- src/blocks/scratch3_looks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blocks/scratch3_looks.js b/src/blocks/scratch3_looks.js index b1684c38..ef789358 100644 --- a/src/blocks/scratch3_looks.js +++ b/src/blocks/scratch3_looks.js @@ -117,6 +117,7 @@ class Scratch3LooksBlocks { * @private */ _positionBubble (target) { + if (!target.visible) return; const bubbleState = this._getBubbleState(target); const [bubbleWidth, bubbleHeight] = this.runtime.renderer.getCurrentSkinSize(bubbleState.drawableId); const targetBounds = target.getBoundsForBubble();