Jump to content

Widget 'button' loses mouse focus when clicking in its clickoffset range.


CarlZalph
  • Pending

For all UI elements that use the button widget with a member 'clickoffset' being some value that makes the button go down when pressed will cause the button to not register a click when the client clicks right at the top edge of a button.

The button will make the sound effect, a click animation, and then it pops back up immediately and throws out the client's click all together.

I suspect the offset makes the button go out of focus and thus eats the widget's OnControl from functioning further.

 

Came across this when re-using a button widget for a mod and found it kept eating my inputs.


Steps to Reproduce

Hover over any button with an offset animation, then slowly go up to the top of the button's range where it still highlights the button, then click.  The button will immediately pop back up and fail to register the click.

  • Like 3



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...