Tech Talk: Improving Window Resize Behavior
a day ago
- #Electron
- #Chromium
- #Windows
- Electron and Chromium had a bug where old frames became visible during window resizing on Windows.
- The issue was traced to Chromium's graphics backend, specifically the ANGLE Direct3D 11 backend.
- Two main bugs were identified: one related to asynchronous updates of viewport and clip rect, and another involving stale pixels during resizing.
- The first bug was fixed by ensuring areas outside the viewport were painted transparent during resizing.
- The second bug was resolved by adjusting the viewport and clip rect to match the frame size, avoiding stale pixels.
- Fixes were backported to Electron versions, starting with Electron 39.2.6.
- The fixes are also expected to be part of Google Chrome's stable release by February 2026.