/**
 * @module
 * @prototype {Function} clearMovement|stop
 */

import { SmoothScrollbar } from '../smooth_scrollbar';

export { SmoothScrollbar };

/**
 * @method
 * @api
 * Stop scrollbar right away
 */
SmoothScrollbar.prototype.clearMovement = SmoothScrollbar.prototype.stop = function() {
    this.movement.x = this.movement.y = 0;
};
@@ -329,10 +329,61 @@
 .y = 0;%0A
+    cancelAnimationFrame(this.__timerID.scrollTo);%0A
 %7D;

stop scrollTo animation when called