mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 15:32:40 -05:00
Do not bother repositioning bubbles for invisible sprites
This commit is contained in:
parent
9782c137bb
commit
54d5be8bba
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ class Scratch3LooksBlocks {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_positionBubble (target) {
|
_positionBubble (target) {
|
||||||
|
if (!target.visible) return;
|
||||||
const bubbleState = this._getBubbleState(target);
|
const bubbleState = this._getBubbleState(target);
|
||||||
const [bubbleWidth, bubbleHeight] = this.runtime.renderer.getCurrentSkinSize(bubbleState.drawableId);
|
const [bubbleWidth, bubbleHeight] = this.runtime.renderer.getCurrentSkinSize(bubbleState.drawableId);
|
||||||
const targetBounds = target.getBoundsForBubble();
|
const targetBounds = target.getBoundsForBubble();
|
||||||
|
|
Loading…
Reference in a new issue