Mouse focus in multiple monitors not working properly

I would like to note that when using multiple monitors, the mouse horizontal and vertical scroll works OK when changing from one monitor to the other (without clicking the window), but this does not happen for the zoom made with the wheel (it is necessary to click the window to get the focus). Using Windows.