Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE committed Feb 24, 2025
1 parent 25bd6e2 commit 8de8d83
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ function addOrUpdateSurfaceToElement(

const isVisible = surface.visible;

if (!isVisible) {
if (surfaceActor) {
viewport.removeActors([surfaceActorEntry.uid]);
viewport.render();
}
return;
}

if (surfaceActor) {
surfaceActor.setVisibility(isVisible);

if (!isVisible) {
return;
}
// we already have an actor for this surface, we just need to update it

// Todo: figure out if the surface configuration has changed
Expand Down

0 comments on commit 8de8d83

Please sign in to comment.