From ebcb0af56dfccd38f539c462b46f489a374a5ed0 Mon Sep 17 00:00:00 2001 From: Kyle Fleming Date: Sat, 1 Jul 2017 14:51:32 -0700 Subject: [PATCH] Fix scroll performance for widget with huge content --- lib/widgets/element.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/element.js b/lib/widgets/element.js index 29a783c..d044ecc 100644 --- a/lib/widgets/element.js +++ b/lib/widgets/element.js @@ -530,7 +530,8 @@ Element.prototype._parseAttr = function(lines) { , j , c; - if (lines[0].attr === attr) { + if (Array.isArray(lines.attr) && lines.attr.length > 0 + && lines.attr[0] === attr) { return; }