Note that there are some explanatory texts on larger screens.

plurals
  1. POniceScroll cursor height
    primarykey
    data
    text
    <p>I am using jquery nicescroll (<a href="http://areaaperta.com/nicescroll/" rel="nofollow">http://areaaperta.com/nicescroll/</a>).</p> <p>I want to adjust the height of the cursor which seems pretty straight forward by adding the cursorminheight parameter. This does not work.</p> <p>HTML</p> <pre><code>&lt;div class="viewport-scrollbox"&gt; &lt;div class="wrapper-content-scrollbox"&gt; &lt;ul class="client-gallery"&gt; &lt;li&gt;&lt;img src="image1.jpg" alt="" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="image2.jpg" alt="" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="image3.jpg" alt="" /&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!--close wrapper-content-scrollbox--&gt; &lt;/div&gt;&lt;!--close viewport-scrollbox--&gt; </code></pre> <p>CSS</p> <pre><code>.viewport-scrollbox{ height:500px; overflow:auto; margin-bottom:20px; margin-right:auto; margin-left:auto; } </code></pre> <p>JS</p> <pre><code>&lt;script src="js/jquery.nicescroll.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready( function() { $("html").niceScroll({cursorwidth:10}); /* main scrollbar on page*/ $(".viewport-scrollbox").niceScroll(".wrapper-content-scrollbox",{touchbehavior:false,cursorcolor:"#898989",cursoropacitymax:0.7,cursorwidth:6,background:"#ccc",autohidemode:false});/*customize scrollbar for gallery*/ $("#ascrail2001").css({'top': '14px','right':'22px'});/*position scrollbar for gallery*/ } ); &lt;/script&gt; </code></pre> <p>I've tried these 2 options which do <strong>NOT</strong> work:</p> <pre><code>$(".viewport-scrollbox").niceScroll(".wrapper-content-scrollbox",{touchbehavior:false,cursorcolor:"#898989",cursoropacitymax:0.7,cursorwidth:6,background:"#ccc",autohidemode:false,cursorminheight:50}); </code></pre> <p>and</p> <pre><code>$("div#ascrail2001.nicescroll-rails div").css('height','50px'); </code></pre> <p>Thank you for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload