Sometimes mouse wheel can't use

Sometimes mouse wheel can’t use, when it happend,I need switch to other window and switch back to my game, the mouse wheel will enabled.
The probability of this happening is very low, but it still happens, how to solve this problem.