I have created mouse scrolling event.Its working perfect on Chrome but its not working on IE,Firefox,Safari.Please help me.
Asked
Active
Viewed 232 times
0
-
http://stackoverflow.com/questions/988363/how-can-i-debug-my-javascript-code – A. Wolff Jan 22 '16 at 12:01
-
I tried that but not able to understand that – Jan 22 '16 at 12:03
1 Answers
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');
}
});
it is working with Mouse scroll in firefox.

Govinda Rajbhar
- 2,926
- 6
- 37
- 62
-
-
-
Before a moment i could access this http://test.hybreed.co/demo2/ link in Edge and firefox also – Govinda Rajbhar Jan 22 '16 at 12:41
-
-
@Hybreeder yes I am able to access your site in my both browsers. – Govinda Rajbhar Jan 22 '16 at 12:52
-
-
-
Thanks for reply Mr.Govinda, I am able to access the site on chrome and Microsoft edge but not able to access in IE ,Safari,Mozila – Jan 25 '16 at 08:51