Skip to content

after calling this.sys.game.destroy(true), all input events can't be detected and fired #4502

@bigblueblue

Description

@bigblueblue

Version

  • Phaser Version: Phaser v3.16.2-FB(Canvas | WebAudio)
  • Operating system:
  • Browser: chrome

Description

when window got resize, I call , and new Phaser.Game(), and

this.sys.game.destroy(true)
let game = new Phaser.Game(config)
create: function () {
let logo = this.add.image(0, 0, 'logo').setInteractive()
logo.on('pointerdown', function () {
    console.log('click')
})
}

when i use mouse to click this, it doesn't fire the pointerdown

Example Test Code

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions