Phaser API Documentation

  Version: 
updateBounds()

Description:

Updates the canvasBounds rectangle to match the bounding client rectangle of the canvas element being used to track input events.

Since: 3.16.0