The 'OnMouseButtonDown' event on a user widget is not as responsive as native widgets?

I’m trying to make a custom button. It works as expected except it’s not as responsive as the native button widget.
If I click really fast, continuously on my button widget, it only picks up every 2nd click.
Its like, after clicking, I have to wait a few milliseconds before the button becomes clickable again. I checked and it’s the event itself which is the problem.
The ‘OnMouseButtonDown’ event does not fire.

  1. Click - Event fires
  2. Click - Event does not fire
  3. Click - Event fires
  4. Click - Event does not fire

This only happens when clicked continuously and fast. If I wait between clicks then it works.
On the other hand, the native button widget feels really responsive, it works, doesn’t matter how fast I click.

Can anyone tell what might be the problem?

1 Like

That’s expected behavior. What actually happens is that your fast clicking is interpreted as double clicks by the widget and OnMouseButtonDoubleClick is called instead of OnMouseButtonDown.

The native UMG button widget doesn’t have double click functionality built in, so every single click is interpreted as an individual click event. That’s why it feels more responsive to you.

1 Like

Ah, I see.
I got it to work by calling the same function from OnMouseButtonDown and OnMouseButtonDoubleClick

Thanks for the help