# Inactive scene is updated after transition complete

**URL:** <https://phaser.discourse.group/t/inactive-scene-is-updated-after-transition-complete/8850>\
**Category:** Phaser 3\
**Created:** [February 8, 2021, 9:38am UTC](https://phaser.discourse.group/t/inactive-scene-is-updated-after-transition-complete/8850 "2021-02-08T09:38:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueArcade](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/bluearcade/32/4774_2.png) [@blueArcade](https://phaser.discourse.group/u/blueArcade)\
**Post date:** [February 8, 2021, 9:38am UTC](https://phaser.discourse.group/t/inactive-scene-is-updated-after-transition-complete/8850/1 "2021-02-08T09:38:24Z")

</div>

version : `3.52.0`

Hi,

I tried to use scene Transition and I found inactive scene was updated after shutdown (only once).

I’m not familiar with Phaser, `system.sceneUpdate.call` seems to be called after `scenePlugin.transitionComplete`.

```javascript
// Scene.System
step: function (time, delta)
{
  var events = this.events;

  events.emit(Events.PRE_UPDATE, time, delta);

  // 'scenePlugin.transitionComplete' is called and scene will be inactive
  events.emit(Events.UPDATE, time, delta);

  // update inactive scene
  this.sceneUpdate.call(this.scene, time, delta);

  events.emit(Events.POST_UPDATE, time, delta);
},

```

Transition was started as following…

```javascript
// from : scene.system.settings{active: true, status: 5 ...}
// to : scene.system.settings{active: false, status: 1 ...}
 
this.scene.transition({
  target: 'anotherScene',
  duration: 2000,
  remove: false,
  allowInput: false,
  onUpdate: (progress: number]) => {
    console.log(`transition: ${progress}`);
  }
});

```

I didn’t know if I should write it in the issue, so I wrote it here.

thanks.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [February 8, 2021, 10:13pm UTC](https://phaser.discourse.group/t/inactive-scene-is-updated-after-transition-complete/8850/2 "2021-02-08T22:13:10Z")

</div>

I guess it’s a bug. It looks like POST\_UPDATE would fire once afterwards as well.

---

<div class="post-metadata">

**Author:** ![blueArcade](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/bluearcade/32/4774_2.png) [@blueArcade](https://phaser.discourse.group/u/blueArcade)\
**Post date:** [February 9, 2021, 1:17pm UTC](https://phaser.discourse.group/t/inactive-scene-is-updated-after-transition-complete/8850/3 "2021-02-09T13:17:19Z")

</div>

I reported it on github.

> <https://github.com/photonstorm/phaser/issues/5550>
>
> Version
> Phaser Version: 3.52.0
> Operating system: ubuntu 18.04
> Browser: chrome
> Description
> Hi,
> I tried to use scene Transition and I found inactive scene was updated after shutdown...

thank you for your replying!
