diff options
author | David DeSandro <desandrocodes@gmail.com> | 2016-10-18 08:15:37 -0400 |
---|---|---|
committer | David DeSandro <desandrocodes@gmail.com> | 2016-10-18 08:15:37 -0400 |
commit | a446a346b49df07f34c80f19ad17759f600c8db3 (patch) | |
tree | f0c69bfba175956a4f7b209a57ba85fdd5c545cb | |
parent | 8c0ef69575ac1c24271068a8d71e6f781955d4f2 (diff) | |
download | flickity-a446a346b49df07f34c80f19ad17759f600c8db3.zip flickity-a446a346b49df07f34c80f19ad17759f600c8db3.tar.gz flickity-a446a346b49df07f34c80f19ad17759f600c8db3.tar.bz2 |
🐞 Stop scroll listening on dragStart
address slipperiness with #457
-rw-r--r-- | js/drag.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ] ); }; |