유저 에이전트가 WebGLRenderingContext
객체와 연결된 드로잉 버퍼가 손실되었음을 감지할 때 발생한다.
htmlCanvasElement.onwebglcontextlost = (e) => { }
htmlCanvasElement.addEventListener("webglcontextlost", (e) => { })
type | webglcontextlost |
---|---|
bubbles | no |
cancelable | yes |
target | HTMLCanvasElement |
handler | yes |