Buttons only work with a double click the first time you press them
-
Hello, some buttons in my plugin have to be double-clicked to work, but it should work immediately after clicking once. saveinPreset is disabled and I've also check everything else
-
Show some code
-
@meto396 Are you using filmstrip images? If yes, double check size and number of frames.
For smooth and relevant animation, if you're using Lottie, check the number of frames in the animation. -
It could be that you are toggling the button "on and off", depending on the state at the start. Try adding something like this at the top of your button callbacks:
if(!value) return;
-
@d-healey my codes for the buttons look like this:
const var Panel1 = Content.getComponent("Panel1"); const var Button1 = Content.getComponent("Button1"); inline function onButton1Control(component, value) { Panel1.showControl(value); }; Button1.setControlCallback(onButton1Control); Content.getComponent("Button1").setControlCallback(onButton1Control);
-
@Steve-Lydford tried this but now I couldn't click nothing anymore
-
@meto396 Is it a momentary button?
-
@d-healey no all of these buttons where I have this problem are opening panels or images
-
@meto396 I don't see anything wrong in that code. Make a new test project with one button and one panel and see if the issue occurs there.