This happens between Chrome windows, because you are still within Chrome if you have one of the windows in focus, so Chrome can determine which window you want to scroll by figuring out which one you are hovered over. On Mac, it scrolls even if the application in question is out of focus.