Skip to main content
Inspiring
July 8, 2025
Question

Mouse leave/exit event in custom UI

  • July 8, 2025
  • 1 reply
  • 184 views

Hello,

 

Once again I'm testing the limits of what the SDK allows me to do.

 

I have a custom control, a button in my effect panel. I want to implement a rollover effect, and it all works fine for activating the rollover, but not to return the button to its normal state.

 

The problem is when I move the mouse too fast, and the cursor goes out of my parameter area. In this case I have no way of checking where the mouse is and even a way to redraw that area with the new state.

 

I can't seem to find an event like PF_Event_MOUSE_LEAVE that I could use to somehow force a redraw and check the mouse position again to see if the mouse is over the button or not. PF_Event_DRAW event for custom controls is only triggered when the mouse is on top of them, same goes for PF_Event_ADJUST_CURSOR.

 

Any idea of a workaround for this one?

 

1 reply

James Whiffin
Legend
July 21, 2025

I have the same problem. I understand why I don't get a draw call if the cursor isn't inside the param but it would be nice to have one last chance to update the highlight state. 

octaviosaAuthor
Inspiring
July 21, 2025

I gave up on the rollover effect. I just set the cursor to a hand on rollover and that's it.

FxFactory
Inspiring
October 1, 2025

@octaviosa I too ran and filed this bug, against Premiere Pro, but to the best of my knowledge nothing has moved in that area:

https://community.adobe.com/t5/premiere-pro-beta-bugs/premiere-pro-won-t-send-a-pf-event-mouse-exited-when-mouse-exists-custom-parameter-ui/idi-p/14791112