I know that this question has been asked before (for example here) but I didn’t find a satisfactory answer; also, the answers provided in those threads used an older version of the documentation which has now changed.
Now to the issue at hand. Here’s a quote from the MonoBehaviour:OnMouseUp() documentation:
Note that OnMouseUp is called even if the mouse is not over the same GUIElement or Collider as the has[sic] mouse has been pressed down on.
I find that this is not true. When I press the mouse button down next to my object with the OnMouseUp() script attached, then drag it in and release the button, nothing fires. Same thing when I drag from one object to another. In short, OnMouseUp() seems to behave the same way as OnMouseUpAsButton().
I checked the Issue Tracker but didn’t find anything. Am I doing something wrong, is this a bug? Or is the documentation just wrong?