summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid DeSandro <desandrocodes@gmail.com>2016-10-18 08:15:37 -0400
committerDavid DeSandro <desandrocodes@gmail.com>2016-10-18 08:15:37 -0400
commita446a346b49df07f34c80f19ad17759f600c8db3 (patch)
treef0c69bfba175956a4f7b209a57ba85fdd5c545cb
parent8c0ef69575ac1c24271068a8d71e6f781955d4f2 (diff)
downloadflickity-a446a346b49df07f34c80f19ad17759f600c8db3.zip
flickity-a446a346b49df07f34c80f19ad17759f600c8db3.tar.gz
flickity-a446a346b49df07f34c80f19ad17759f600c8db3.tar.bz2
🐞 Stop scroll listening on dragStart
address slipperiness with #457
-rw-r--r--js/drag.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/drag.js b/js/drag.js
index 893eb7e..fb7d9c8 100644
--- a/js/drag.js
+++ b/js/drag.js
@@ -194,6 +194,7 @@ proto.pointerDone = function() {
proto.dragStart = function( event, pointer ) {
this.dragStartPosition = this.x;
this.startAnimation();
+ window.removeEventListener( 'scroll', this );
this.dispatchEvent( 'dragStart', event, [ pointer ] );
};