Do not bother repositioning bubbles for invisible sprites

This commit is contained in:
Paul Kaplan committed 2018-04-20 10:45:34 -04:00
1 parent 9782c137bb
commit 54d5be8bba
1 file changed
+1
+1
View File
@@ -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();