mercredi 13 juillet 2016

Scroll a div while using the scrollwheel over another div


Say I have 2 divs side by side. Both are 400px x 400px, and have overflow set to auto. The content inside is taller than 400px so there are vertical scrollbars.

When the mouse is over the div on the left, and the user uses the mousewheel to scroll, I want the other div to scroll, and vice versa.

So basically when a user is using the mousewheel over a certain area, I want to control the scroll of another area respectively.

Is this possible with jQuery?


Aucun commentaire:

Enregistrer un commentaire