hover position isn't correct

For some reason, the hover isn’t always working as it should, it works only on the right side of the element and not on the left side, even the debugger picking it incorrect, you can see it in the video below, how can I fix it?

https://vimeo.com/979743852

Hi Songerk,

The element that causes you problems seems to be a Port element. This element is doing something that very few elements do, that is it overrides the ContainsPoint method. Normally, an element will be hovered whenever the pointer is inside its rect, but this element overrides the method and can discard any point it wants. I’m not familiar with the specifics of the Port element in particular, but it would seem that it does this on purpose, only wanting to accept hover from the right.

Can you reproduce the same problem with a regular VisualElement? If not, then I can only assume that it’s this element’s designed behavior.