Snap handle to the scale ticks.

Add an option to snap the handle to the scale ticks. It's mandatory for
ordinal scales and useful for time scales.