Skip to content

Commit

Permalink
👷 build v2.0.10; fix drag images, fix Chrome drag
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Sep 12, 2017
1 parent d2ab828 commit 7491e02
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion css/flickity.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Flickity v2.0.9
/*! Flickity v2.0.10
http://flickity.metafizzy.co
---------------------------------------------- */

Expand Down
2 changes: 1 addition & 1 deletion dist/flickity.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Flickity v2.0.9
/*! Flickity v2.0.10
http://flickity.metafizzy.co
---------------------------------------------- */

Expand Down
2 changes: 1 addition & 1 deletion dist/flickity.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions dist/flickity.pkgd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Flickity PACKAGED v2.0.9
* Flickity PACKAGED v2.0.10
* Touch, responsive, flickable carousels
*
* Licensed GPLv3 for open source use
Expand Down Expand Up @@ -2073,7 +2073,7 @@ proto._bindStartEvent = function( elem, isBind ) {
isBind = isBind === undefined ? true : !!isBind;
var bindMethod = isBind ? 'addEventListener' : 'removeEventListener';

if ( false ) {
if ( window.PointerEvent ) {
// Pointer Events. Chrome 55, IE11, Edge 14
elem[ bindMethod ]( 'pointerdown', this );
} else {
Expand Down Expand Up @@ -2745,20 +2745,16 @@ proto.pointerDownFocus = function( event ) {
}
};

var touchStartEvents = {
touchstart: true,
pointerdown: true,
};

var focusNodes = {
INPUT: true,
SELECT: true,
};

function getCanPointerDown( event ) {
var isTouchStart = touchStartEvents[ event.type ];
var isTouchStart = event.type == 'touchstart';
var isTouchPointer = event.pointerType == 'touch';
var isFocusNode = focusNodes[ event.target.nodeName ];
return isTouchStart || isFocusNode;
return isTouchStart || isTouchPointer || isFocusNode;
}

proto.canPreventDefaultOnPointerDown = function( event ) {
Expand Down Expand Up @@ -4004,7 +4000,7 @@ return Flickity;
}));

/*!
* Flickity v2.0.9
* Flickity v2.0.10
* Touch, responsive, flickable carousels
*
* Licensed GPLv3 for open source use
Expand Down
4 changes: 2 additions & 2 deletions dist/flickity.pkgd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Flickity v2.0.9
* Flickity v2.0.10
* Touch, responsive, flickable carousels
*
* Licensed GPLv3 for open source use
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flickity",
"version": "2.0.9",
"version": "2.0.10",
"description": "Touch, responsive, flickable carousels",
"main": "js/index.js",
"style": "css/flickity.css",
Expand Down

0 comments on commit 7491e02

Please sign in to comment.