Abraham Jagadeesh
Abraham Jagadeesh

Reputation: 1957

jquery nicescroll: mouse wheel issue

On chrome and when the page direction is 'rtl', the page cannot be scrolled when the mouse wheel is scrolled forwards, page scrolls only when the mouse wheel is scrolled backwards. you may find the issue here.

$(function () {
    $('header').niceScroll();
})

Upvotes: 0

Views: 1361

Answers (1)

stanze
stanze

Reputation: 2480

Try using jQuery Mousewheel plugin.

$(function() {

   $("body").mousewheel(function(event, delta) {

      this.scrollLeft -= (delta * 30);

      event.preventDefault();

   });

Upvotes: 2

Related Questions