Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
show the switched-to tab more quickly whilst still mostly avoiding bl…
Browse files Browse the repository at this point in the history
…ank flashes in-between
  • Loading branch information
petemill committed May 10, 2018
1 parent 450d2b4 commit 44cc4dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/renderer/pooledWebviewDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ module.exports = class WebviewDisplay {
// At the point where we are attached to the guest we *still* want to be displaying.
// So, show it.
toAttachWebview.classList.add(this.classNameWebviewAttaching)
// (takes about 3 frames to paint fully and avoid a white flash)
await animationFrame()
// (takes about 2 frames to paint fully and avoid a white flash)
await animationFrame()
await animationFrame()
this.debugLog('swapWebviewOnAttach: unregisterEvents', tabId)
Expand Down

0 comments on commit 44cc4dc

Please sign in to comment.