Hello, I just have this simple piece of code:
void ComponentXYZ::mouseDrag(const MouseEvent &e)
While dragging I can see the distance in the console. However on mouseUp() (There isn’t any code on mouseUp) it seems that the value changes a bit (usually ±1) without move the mouse at all. This happens aproximately the 25% of times you do it: when you stop dragging there is some extra distance added.
ie: You start dragging and you stop the mouse at ‘596’. Don’t move the mouse and release the mouse button and the value will be ‘597’ or similar.
Is this a bug? what could i do?