SWidget::OnMouseButtonUp triggers only on double click

uced
Sat, 10 Oct 2015 08:47:14 +0000
UI

Hello !

The SWidget::OnMouseButtonUp seems to trigger only after a double click, not a simple one.

To repro, override this function, for example:

// SYagHUDWidget inherits from SCompoundWidget
FReply SYagHUDWidget::OnMouseButtonUp(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent)
{
	GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("OnMouseButtonUp"));
	return FReply::Handled();
}

The message appears only when double clicking.

Cheers

Cedric

5 posts - 3 participants