From df4c200bc32dbcd1b40a813c36399bf3bf006802 Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 4 May 2015 09:44:47 +0200 Subject: [PATCH] Fixed vertical scroll shadows becoming visible when dragging an item --- lib/timeline/Core.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index 9dd08b9c..2d25fb4e 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -93,7 +93,6 @@ Core.prototype._create = function (container) { this.on('rangechange', this.redraw.bind(this)); this.on('touch', this._onTouch.bind(this)); - this.on('panstart', this._onDragStart.bind(this)); this.on('pan', this._onDrag.bind(this)); var me = this; @@ -905,6 +904,7 @@ Core.prototype._stopAutoResize = function () { */ Core.prototype._onTouch = function (event) { this.touch.allowDragging = true; + this.touch.initialScrollTop = this.props.scrollTop; }; /** @@ -916,15 +916,6 @@ Core.prototype._onPinch = function (event) { this.touch.allowDragging = false; }; -/** - * Start moving the timeline vertically - * @param {Event} event - * @private - */ -Core.prototype._onDragStart = function (event) { - this.touch.initialScrollTop = this.props.scrollTop; -}; - /** * Move the timeline vertically * @param {Event} event