0

I have created mouse scrolling event.Its working perfect on Chrome but its not working on IE,Firefox,Safari.Please help me.

http://test.hybreed.co/demo2/

1 Answers1

0

Try with DOMMouseScroll, mousewheel, wheel it should work.

$('#foo').bind('DOMMouseScroll mousewheel wheel', function(e){
    if(e.originalEvent.wheelDelta /120 > 0) {
        alert('up');
    }
    else{
        alert('down');
    }
});

JSFIDDLE EXample

it is working with Mouse scroll in firefox.

Govinda Rajbhar
  • 2,846
  • 4
  • 35
  • 60