2012-04-11 5 views
0

간단한 스크롤 바로 찾기, 특별한 것은 없습니다. 내 코드 :마우스 오른쪽 버튼으로 smooth-div-scroll이 멈 춥니 다.

<script type="text/javascript"> 
    // Initialize the plugin with no custom options 
    $(document).ready(function() { 
     // None of the options are set 
     $("div#makeMeScrollable").smoothDivScroll({ 
      mousewheelScrolling: false, 
      hotSpotScrolling: false, 
      autoScrollingMode: "onstart" 
     }); 
    }); 
</script> 

div의 오른쪽 가장자리를 마우스로 가리키면 스크롤이 멈 춥니 다. 크롬 및 IE에서 발생, 그렇지 않으면 잘 작동하는 것 같다 ???

+0

여기에서 사용중인 플러그인은 무엇입니까? 플러그인에 대한 URL을 나에게 건네 줄 수 있습니까? –

+0

현재 GitHub에서 플러그인 및 모든 동일한 스크립트 등을 다운로드하십시오. – byteman

+0

autoScrollingMode를 "always"로 설정하면 예상대로 작동합니다. – byteman

답변

0

변경 코드 :이 의도처럼 작동

<script type="text/javascript"> 
    // Initialize the plugin with no custom options 
    $(document).ready(function() { 
     // None of the options are set 
     $("div#makeMeScrollable").smoothDivScroll({ 
      autoScrollDirection: "endlessloopright", 
      autoScrollingMode: "always" 
     }); 
    }); 
</script> 

희망!