IsHovered returns false when middle mouse button was pressed


I have a Widget that changes it’s color when the player hovers over it. (as seen in the image)

However, that doesn’t work when the middle mouse button was pressed. IsHovered will always return false then. Only pressing any other mouse button makes it work properly again.

Have you read the question?

Okay, it looks like this is caused by calling bShowMouseCursor = false; and bShowMouseCursor = true; after that in my InputController.

Is this a bug?