mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[gpu] Redraw on visibility change and context restore
Fixes black screen after phone lock/unlock or tab switch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c4f8c58433
commit
317dffe886
1 file changed
+2
@@ -127,6 +127,8 @@ tap: animate · dbl-tap+drag: zoom · long-press: reset</span>
|
||||
}
|
||||
resizeCanvas();
|
||||
window.addEventListener('resize', resizeCanvas);
|
||||
document.addEventListener('visibilitychange', resizeCanvas);
|
||||
canvas.addEventListener('webglcontextrestored', resizeCanvas);
|
||||
|
||||
/* Backend selector */
|
||||
var isWebGPU = location.pathname.indexOf('webgpu') !== -1;
|
||||
|
||||
Reference in new issue
Block a user