From fa3456341c62d991279f842030540f02f7da07a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 1 Aug 2016 17:10:00 +0200 Subject: [PATCH] Fix view flickering during window resizes. Closes #1126 --- src/view/View.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/view/View.js b/src/view/View.js index aa823937..73579c1f 100644 --- a/src/view/View.js +++ b/src/view/View.js @@ -395,8 +395,11 @@ var View = Base.extend(Emitter, /** @lends View# */{ delta: delta }); this._changed(); - if (this._autoUpdate) - this.requestUpdate(); + if (this._autoUpdate) { + // Update right away, don't wait for the next animation frame as + // otherwise the view would flicker during resizes, see #1126 + this.update(); + } }, /**