Toggle Button animation is deselecting when pressing somewhere else!?

Hi, in short words, my toggle button animation is deselecting when pressing anywhere on the screen, but the colour tint works fine. The thing is I need the animation but keeps deselecting…?

I will leave below what is going on:

Screenshot 2023-12-06 064720
video