0

Looking for a simple scroll right, nothing special. My code:

<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>

Scrolling stops when you mouseover the right edge of the div. Happens in Chrome and IE, otherwise seems to work fine???

byteman
  • 27
  • 8
  • which plugin are you using here? could you pass me the url for the plugin? – Sandeep Rajoria Apr 11 '12 at 13:44
  • Using the plugin and all the same scripts, etc. from the current GitHub download – byteman Apr 11 '12 at 15:45
  • Figured out that if I make autoScrollingMode: "always" it works as you would expect. – byteman Apr 11 '12 at 15:48
  • The option "onstart" is for when you want autoscrolling directly after the page loads. As soon as the user interacts with the scroller in some way, autoscrolling will stop and not start again until you reload the page or tell it to start using a method. – tkahn Apr 13 '12 at 08:04

1 Answers1

0

Change the code to:

<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>

Hope this works like you intended!

tkahn
  • 1,407
  • 2
  • 21
  • 37