Watch a canvas for a lost or restored WebGL context.
Calling preventDefault on the loss event is what allows the browser to restore the context later; without it the loss is final.
preventDefault
the element three.js draws on.
called with true on loss and false on restoration.
true
false
a function that stops watching.
Watch a canvas for a lost or restored WebGL context.
Calling
preventDefaulton the loss event is what allows the browser to restore the context later; without it the loss is final.