Browse Source

placeholder for future optimization

pull/681/head
Chris Adams 10 years ago
parent
commit
cadd757469
  1. 2
      source/js/Core/Slider/VMM.Slider.js

2
source/js/Core/Slider/VMM.Slider.js

@ -689,6 +689,8 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') {
} else { } else {
VMM.Lib.css(layout, "overflow-y", "hidden" ); VMM.Lib.css(layout, "overflow-y", "hidden" );
var scroll_height = 0; 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 { try {
scroll_height = VMM.Lib.prop(layout, "scrollHeight"); scroll_height = VMM.Lib.prop(layout, "scrollHeight");
VMM.Lib.animate(layout, _duration, _ease, {scrollTop: scroll_height - VMM.Lib.height(layout) }); VMM.Lib.animate(layout, _duration, _ease, {scrollTop: scroll_height - VMM.Lib.height(layout) });

Loading…
Cancel
Save