Skip to content

Conversation

@samme
Copy link
Contributor

@samme samme commented Aug 27, 2021

This PR

  • Fixes a bug

Removes DOMElement#preUpdate() and replaces it with DOMElement #preRender(), for checking parent visibility. And DOMElement is no longer added to the scene update list.

Purpose is to fix #5816 and improve DOMElement's visibility behavior. This way DOMElement will respond to its parent's visibility even if the scene is paused or DOMElement has active = false.

Fixes #5816

Check parent visibility in preRender()

Fixes phaserjs#5816
@photonstorm photonstorm merged commit 8075c3a into phaserjs:master Sep 20, 2021
@photonstorm
Copy link
Collaborator

Sounds good to me. DOM Elements, the double-edge swords that never stop slicing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setVisible not working for DOM elements in a container

2 participants