kSwitchPositionThreshold constant
Logoheadless

kSwitchPositionThreshold#

const double kSwitchPositionThreshold

Position threshold for toggle decision when no fling detected.

If dragT >= 0.5, the switch toggles to "on". If dragT < 0.5, the switch toggles to "off".