Reduce to 25fps for less load

This commit is contained in:
Anthony Stewart 2021-11-19 13:22:30 +01:00
parent 09f5641a70
commit 7c8caeb422

View file

@ -156,7 +156,7 @@ export class OverlayWebview extends Disposable implements IOverlayWebview {
// Temporary fix for https://github.com/microsoft/vscode/issues/110450
// There is an animated that lasts about 200ms, update the webview positioning to match.
if (animated) {
for (let i = 20; i <= 240; i+= 20) {
for (let i = 40; i <= 240; i+= 20) {
setTimeout(() => {
this.layoutWebviewOverElement(element, dimension, /*animated*/ false);
}, i);