我不确定我在哪里做错了。
我正在使用SmoothDiv
滚动,并在达到scrollerRightLimitReached
时添加内容。
这是我的代码:
$("div.recent_articles").smoothDivScroll({
autoScrollingMode: false,
hotSpotMouseDownSpeedBooster: 1,
visibleHotSpots: "always",
scrollerRightLimitReached: function() {
console.log("Right Limit Reached");
getNextRecentArticles();
}
});
function getNextRecentArticles() {
/* ajax Code */
success: function(data) {
/* get HTML STR recent is html str*/
$(".recent_articles").smoothDivScroll("getHtmlContent", recent, "addLast");
}
}
添加getHtmlContent
后,它会移到第一个Div,我希望在结束时连续滚动。
任何想法,都会受到赞赏
谢谢