contextlost and contextrestored
The contextlost
event for <canvas>
fires when the canvas backing storage is lost, while the contextrestored
event fires when it is recreated.
The contextlost
event for <canvas>
fires when the canvas backing storage is lost, while the contextrestored
event fires when it is recreated.