Bug 825678 - update algorithm for ValuePicker

The original implementation updates the status of ValuePicker
whenever it gets mouse-move event, and it loses information
of initialization of dragging.

To update the implementation to track needed information when we
are dragging.