SmoothDivScroll从First Element not Continuous开始

时间:2014-08-29 04:46:44

标签: jquery html ajax jquery-plugins

我不确定我在哪里做错了。

我正在使用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,我希望在结束时连续滚动。

任何想法,都会受到赞赏

谢谢

0 个答案:

没有答案