Authored by xuqi

跳转顶部添加条件判断

... ... @@ -31,9 +31,11 @@ exports.init = function() {
.addClass('hide')
.eq(index)
.removeClass('hide');
//scroll to top
$(document).scrollTop(thisContainer.offset().top);
//scroll to top when container is fixed
if (thisContainer.find('.thumb-container').hasClass('fixed')) {
$(document).scrollTop(thisContainer.offset().top);
}
});
//默认选中第一个
... ...