Changing position of discrete slider with single press of touchscreen

Hey there,

Im doing a project where I want to change the position of a slider on a touchscreen when the participant touches one of the notches in the slider a single time. Currently it only works by moving the red circle and dragging it.

I’ve used buttons on touchscreens in the past with the .contains() method but I cant seem to adapt it for this. I also trying replicating a double click with pyautogui library but that also does not appear to be working.

Any help or suggestions to try next would be greatly appreciated!