sync up with browser repaint to get a smoother slide effect.
Fixed issue with erronisly using apply instead of call. Ensure onStateChange only fires on in mouseup handler
new mins