avinashajs / jquery-nicescroll

Automatically exported from code.google.com/p/jquery-nicescroll
0 stars 0 forks source link

smoothscroll set to false blocks cursor #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set smoothscroll:false when constructing your nicescroll instance:
$(document).ready(
    function() {
        nice = $("#scroll").niceScroll("#wrapperdiv",{
            cursorcolor:"#51FFC9",
            cursoropacitymin:"0.5",
            cursorborderradius: "0",
            bouncescroll:false,
            scrollspeed:"100",
            cursorfixedheight: "150",
            smoothscroll:false,
            });
    }
);

What is the expected output? What do you see instead?
-expected: scrolling should loose it's "inertia" and stop when mouse wheel 
stops along with the cursor.
-instead: scrolling lost its inertia but the cursor doesnt move at all.

What version of the product are you using? On what operating system?
jquery.nicescroll version 3.2.0

Please provide any additional information below.
i've seen this happen on pc with chrome 26, IE9 and firefox 19.0.2
and on mac with chrome 26 and safari 5.1.7.

click and drag the cursor still works.

Original issue reported on code.google.com by jonathan...@gmail.com on 10 Apr 2013 at 10:31

GoogleCodeExporter commented 8 years ago
I am using 3.6.0, the same problem happens.

If smoothscroll is false, then the cursor will not move.

However, in the block that handles position move:
around line 2744 in jquery.nicescroll.js:
        self.synched('scroll', function() {
          self.setScrollTop(ny);
          self.setScrollLeft(nx);
          throw "well";
        });
      };
if i throw an exception, then the scroll bar moves.

Original comment by Ricky.J....@gmail.com on 9 Jan 2015 at 3:53