From 484fc8a55422c861bd3cb3baeeca10714b433ce9 Mon Sep 17 00:00:00 2001 From: Dave DeSandro Date: Sun, 19 Dec 2021 11:30:00 -0500 Subject: [PATCH] 2.4.1 --- README.md | 2 +- dist/draggabilly.pkgd.js | 14 +++++++++----- dist/draggabilly.pkgd.min.js | 10 +++++----- draggabilly.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index c24c49e..7df1ff5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Rad because it supports IE10+ and touch devices. -Draggabilly v2.4.0 +Draggabilly v2.4.1 ## Install diff --git a/dist/draggabilly.pkgd.js b/dist/draggabilly.pkgd.js index fc82668..fd01fb7 100644 --- a/dist/draggabilly.pkgd.js +++ b/dist/draggabilly.pkgd.js @@ -1,5 +1,5 @@ /*! - * Draggabilly PACKAGED v2.4.0 + * Draggabilly PACKAGED v2.4.1 * Make that shiz draggable * https://draggabilly.desandro.com * MIT license @@ -473,7 +473,7 @@ return EvEmitter; })); /*! - * Unipointer v2.3.0 + * Unipointer v2.4.0 * base class for doing one thing with pointer event * MIT license */ @@ -776,7 +776,7 @@ return Unipointer; })); /*! - * Unidragger v2.3.0 + * Unidragger v2.4.0 * Draggable base class * MIT license */ @@ -866,7 +866,11 @@ proto.pointerDown = function( event, pointer ) { return; } // track start event position - this.pointerDownPointer = pointer; + // Safari 9 overrides pageX and pageY. These values needs to be copied. flickity#842 + this.pointerDownPointer = { + pageX: pointer.pageX, + pageY: pointer.pageY, + }; event.preventDefault(); this.pointerDownBlur(); @@ -1056,7 +1060,7 @@ return Unidragger; })); /*! - * Draggabilly v2.4.0 + * Draggabilly v2.4.1 * Make that shiz draggable * https://draggabilly.desandro.com * MIT license diff --git a/dist/draggabilly.pkgd.min.js b/dist/draggabilly.pkgd.min.js index 810be13..cf13458 100644 --- a/dist/draggabilly.pkgd.min.js +++ b/dist/draggabilly.pkgd.min.js @@ -1,5 +1,5 @@ /*! - * Draggabilly PACKAGED v2.4.0 + * Draggabilly PACKAGED v2.4.1 * Make that shiz draggable * https://draggabilly.desandro.com * MIT license @@ -12,19 +12,19 @@ */ (function(t,e){"use strict";if(typeof define=="function"&&define.amd){define("get-size/get-size",[],function(){return e()})}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.getSize=e()}})(window,function t(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}var i=typeof console=="undefined"?e:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function E(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e