OnEndDrag being called when there is no OnBeginDrag registered

So I put the following code on a widget - dragging functionality works fine, all 3 get called at the appropriate times. However if I just click on the widget and release without moving the mouse “OnDragEnd” will get called - even though OnBeginDrag never was. This seems broken to me, reported with the bug tool.

If for some reason it isn’t a bug, I’d love to hear the rationale :stuck_out_tongue:

public void OnBeginDrag(PointerEventData eventData){
Debug.Log(“Begin Drag”);
}
public void OnDrag(PointerEventData data){
Debug.Log(“on Drag”);
}
public void OnEndDrag(PointerEventData eventData)
{
Debug.Log(“End Drag”);
}

Same here.

If I click, I receive OnPointerClick and IEndDragHandler even if I not move mouse.

I have a very similar situation.

I have a panel with IEndDragHandler and I recieve OnEndDrag when I click on a button that I have on that panel.

Is this a bug or not?

It’s a bug. Should be fixed in the next patch release.

Which unity version is it affecting ?