driftyco/ionic — pull request #706 by mlynch (2014-03-01 21:54:30+00:00)
Title: Draggable toggle

An implementation of a draggable toggle switch that behaves like iOS's. This means the bar doesn't move with the finger, but it does slide over when the drag hits a certain threshold.

One other interesting thing about the toggle is that it "tends toward" the initial state it was at before the drag started. So, if the switch was "on", the drag will need to go further in order to switch it "off", and vice versa. This is how the iOS 7 slider works.