mouse-wheel-follow-mouse

mouse-wheel-follow-mouse is a variable defined in `mwheel.el'.
Its value is
t


Documentation:
Whether the mouse wheel should scroll the window that the mouse is over.
This can be slightly disconcerting, but some people prefer it.

You can customize this variable.