From cadd7574692e4bba6c7188e717947c3848f8cc56 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 22 Aug 2014 15:59:33 -0400 Subject: [PATCH] placeholder for future optimization --- source/js/Core/Slider/VMM.Slider.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/js/Core/Slider/VMM.Slider.js b/source/js/Core/Slider/VMM.Slider.js index 8b49267..fcb8c4d 100644 --- a/source/js/Core/Slider/VMM.Slider.js +++ b/source/js/Core/Slider/VMM.Slider.js @@ -689,6 +689,8 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') { } else { VMM.Lib.css(layout, "overflow-y", "hidden" ); var scroll_height = 0; + + // FIXME: Chrome cannot optimize this try/catch block, which appears to be unnecessary – see https://github.com/NUKnightLab/TimelineJS/pull/681#issuecomment-52365420 try { scroll_height = VMM.Lib.prop(layout, "scrollHeight"); VMM.Lib.animate(layout, _duration, _ease, {scrollTop: scroll_height - VMM.Lib.height(layout) });