Remove redundant render in offscreen win when positioning

This commit is contained in:
Max Goodhart
2020-11-11 22:30:03 -08:00
parent 8df7dab144
commit 6ea529c26f

View File

@@ -107,6 +107,8 @@ export default class StreamWindow extends EventEmitter {
},
positionView: (context, event) => {
const { pos, view } = context
offscreenWin.removeBrowserView(view)
win.addBrowserView(view)
// It's necessary to remove and re-add the overlay view to ensure it's on top.