Need to click close 2 times to close form with fade animation

51 Views Asked by At

So I use a smooth fade out animation, and for some reason, I need to click 2 times to exit the form. The form is using FlatUI (formSkin1)

Code:

Code

Close not clicked:

Close not clicked

Clicked once: (it goes a little bit transparent)

Clicked once

On the second click, it closes the form. How do I fix this so I need to only click it once?

0

There are 0 best solutions below