UI Object Redrawing when Mouse Enters and Leaves the Box?

Joe Kaplan's icon

I'm noticing some funky behaviour with Min Devkit. Maybe this is normal? I just don't know.

I have a UI Object with a cout statement in the Paint Method.

It appears that every time the mouse enters the box, the paint method is called. The same occurs every time the mouse leaves the box.

I'm trying to figure what's causing this. I put a debug break point on every one of my redraw() calls. None of them are getting hit.

The focus gaines and focus lost messages are not getting hit either.

Is this just the natural behaviour? To redraw when the mouse enters and leaves the box?

I guess it's fine if this is normal, it's just not what I expected and seems like it could lead to weird behavior in some use cases.

Joe Kaplan's icon

I noticed this doesn't happen in Presentation mode. Super interesting. Anyway, just sharing what I've found.