Having trouble with "Control" - cannot drag the slider

Hi, I wanted my slider to appear only upon clicking the checkbox “show point B”. But however, I can’t drag the slider. Anyone knows why and how should I amend my code to address the problem?

Thanks!

Could you reduce your code and post it here directly? Try to narrow it down so there is nothing redundant.