JavaScript Mousewheel Scroll not working inside Div mouse wheel scroll not working,mouse wheel scroll not working

Don't process wheel scroll if it's over that div. Replace this:

event.preventDefault();  

... with this:

var target = event.originalEvent.target;
target = target && $(target).parents('.announcements')[0];
if (target)
  return true;

event.preventDefault(); 

Sample here.

Answer:1

You need to handle the scrolling separately for that div. At the minute the issue is that you're calling event.preventDefault(); when you scroll on the window, and it's stopping the scroll event of the div from firing.

Answer:2

What I'm trying to do is a simple function, using jQuery, that would increment variables (A, B or C) depending on which button you're pressing. I'm not very good at explaining stuff, so let me just ...

What I'm trying to do is a simple function, using jQuery, that would increment variables (A, B or C) depending on which button you're pressing. I'm not very good at explaining stuff, so let me just ...

function titleCase(str) { var one = str.split(''); for(var i = 0;i>one.length;i++) { one[i] = one[i].charAt(0).toUpperCase() + one[i].slice(1); } var final = one.join(""); return ...

function titleCase(str) { var one = str.split(''); for(var i = 0;i>one.length;i++) { one[i] = one[i].charAt(0).toUpperCase() + one[i].slice(1); } var final = one.join(""); return ...

  1. capitalization javascript string

I have an html tag, "loginBox" (<loginBox> ... </loginBox>) that drops down when a user selects an option. However, before that it is hidden with display:none. How can I make it drop down, ...

I have an html tag, "loginBox" (<loginBox> ... </loginBox>) that drops down when a user selects an option. However, before that it is hidden with display:none. How can I make it drop down, ...

  1. make element slide in

I am using revision 71. How you can see on images, i can escape some objects in vision, when i am using transparent material. Sorry, i don't know how to explain my problem better. renderer....

I am using revision 71. How you can see on images, i can escape some objects in vision, when i am using transparent material. Sorry, i don't know how to explain my problem better. renderer....