0

Am using nicescroll in my code. Is there any way to change the nicescroll hand cursor to default arrow cursor?

Gowsikan
  • 5,571
  • 8
  • 33
  • 43

3 Answers3

1

Set the cursor property with the appropriate selectors.

Vimal Stan
  • 2,007
  • 1
  • 12
  • 14
1

Nicescroll uses grabbing cursor by default. You can use the grabcursorenabled parameter to remove this hand/grab cursor.

$(yourElement).niceScroll({
    grabcursorenabled: false,
   ..// other parameters
});
    
shikhathakur
  • 15
  • 2
  • 7
  • Could you please elaborate more your answer adding a little more description about the solution you provide? – abarisone Jun 15 '15 at 08:10
0

in jquery.nicescroll.js file, find function detectCursorGrab() (in v.3.4.0 is in the line:186)

There you have the function that changes the cursor.

Play with that function to fix your needs.

Good luck

BTW, the default arrow in CSS is: #id{cursor:default}

gmo
  • 8,860
  • 3
  • 40
  • 51