Its because some element of the hovered button is a pixel less wide than the un-hovered button, so if the cursor is exactly on the edge of the button then it keeps switching between the two states rapidly. It is annoying but also pretty easy to avoid.