Skip to content
  • Benjamin Otte's avatar
    switch: Change handle_x to handle_pos · e1081bc4
    Benjamin Otte authored
    Make that variable go from 0.0 to 1.0 where 0.0 means inactive (slider
    is on the left) and 1.0 means active (slider is on the right).
    
    The math is simpler that way and most importantly the value is
    independent of size.
    e1081bc4