Onclicked works differently

I got around the problem by adding a delay, which prevents the “double click” and therefore the double function simultaneously.

For the moment, it’s fine