I have a gameObject that starts with a random rotation and position between a set range.
And when my mouse hovers over (IPointerEnter, IPointerExit) the gameObject it resets its position and rotation the the default values.
The problem is, that when I position my mouse on a specific place over the gameObject (mostly the corners because of the rotation) it starts rapidly changing its position.
(from the default position to the random position that is set at the start)
My question basicly is how to detect that the object is doing that weird position/flickering thing so I can prevent it in code.