-
-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a95834
commit 972a01f
Showing
7 changed files
with
17 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* Glide.js v3.2.2 | ||
* Glide.js v3.2.3 | ||
* (c) 2013-2018 Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/) | ||
* Released under the MIT License. | ||
*/ | ||
|
@@ -1151,16 +1151,6 @@ var MARGIN_TYPE = { | |
|
||
function Gaps (Glide, Components, Events) { | ||
var Gaps = { | ||
/** | ||
* Setups gap value based on settings. | ||
* | ||
* @return {Void} | ||
*/ | ||
mount: function mount() { | ||
this.value = Glide.settings.gap; | ||
}, | ||
|
||
|
||
/** | ||
* Applies gaps between slides. First and last | ||
* slides do not receive it's edge margins. | ||
|
@@ -1211,18 +1201,7 @@ function Gaps (Glide, Components, Events) { | |
* @returns {Number} | ||
*/ | ||
get: function get() { | ||
return Gaps._v; | ||
}, | ||
|
||
|
||
/** | ||
* Sets value of the gap. | ||
* | ||
* @param {String} value | ||
* @return {Void} | ||
*/ | ||
set: function set(value) { | ||
Gaps._v = toInt(value); | ||
return toInt(Glide.settings.gap); | ||
} | ||
}); | ||
|
||
|
@@ -1252,14 +1231,6 @@ function Gaps (Glide, Components, Events) { | |
} | ||
}); | ||
|
||
/** | ||
* Remount component: | ||
* - on updating via API, to update gap value | ||
*/ | ||
Events.on('update', function () { | ||
Gaps.mount(); | ||
}); | ||
|
||
/** | ||
* Apply calculated gaps: | ||
* - after building, so slides (including clones) will receive proper margins | ||
|
@@ -2697,7 +2668,7 @@ function Swipe (Glide, Components, Events) { | |
if (settings.swipeThreshold) { | ||
Binder.on(START_EVENTS[0], Components.Html.wrapper, function (event) { | ||
_this.start(event); | ||
}, { passive: true }); | ||
}); | ||
} | ||
|
||
if (settings.dragThreshold) { | ||
|
@@ -2729,7 +2700,7 @@ function Swipe (Glide, Components, Events) { | |
|
||
Binder.on(MOVE_EVENTS, Components.Html.wrapper, throttle(function (event) { | ||
_this2.move(event); | ||
}, Glide.settings.throttle), { passive: true }); | ||
}, Glide.settings.throttle)); | ||
}, | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* Glide.js v3.2.2 | ||
* Glide.js v3.2.3 | ||
* (c) 2013-2018 Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/) | ||
* Released under the MIT License. | ||
*/ | ||
|
@@ -1157,16 +1157,6 @@ | |
|
||
function Gaps (Glide, Components, Events) { | ||
var Gaps = { | ||
/** | ||
* Setups gap value based on settings. | ||
* | ||
* @return {Void} | ||
*/ | ||
mount: function mount() { | ||
this.value = Glide.settings.gap; | ||
}, | ||
|
||
|
||
/** | ||
* Applies gaps between slides. First and last | ||
* slides do not receive it's edge margins. | ||
|
@@ -1217,18 +1207,7 @@ | |
* @returns {Number} | ||
*/ | ||
get: function get() { | ||
return Gaps._v; | ||
}, | ||
|
||
|
||
/** | ||
* Sets value of the gap. | ||
* | ||
* @param {String} value | ||
* @return {Void} | ||
*/ | ||
set: function set(value) { | ||
Gaps._v = toInt(value); | ||
return toInt(Glide.settings.gap); | ||
} | ||
}); | ||
|
||
|
@@ -1258,14 +1237,6 @@ | |
} | ||
}); | ||
|
||
/** | ||
* Remount component: | ||
* - on updating via API, to update gap value | ||
*/ | ||
Events.on('update', function () { | ||
Gaps.mount(); | ||
}); | ||
|
||
/** | ||
* Apply calculated gaps: | ||
* - after building, so slides (including clones) will receive proper margins | ||
|
@@ -2703,7 +2674,7 @@ | |
if (settings.swipeThreshold) { | ||
Binder.on(START_EVENTS[0], Components.Html.wrapper, function (event) { | ||
_this.start(event); | ||
}, { passive: true }); | ||
}); | ||
} | ||
|
||
if (settings.dragThreshold) { | ||
|
@@ -2735,7 +2706,7 @@ | |
|
||
Binder.on(MOVE_EVENTS, Components.Html.wrapper, throttle(function (event) { | ||
_this2.move(event); | ||
}, Glide.settings.throttle), { passive: true }); | ||
}, Glide.settings.throttle)); | ||
}, | ||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* Glide.js v3.2.2 | ||
* Glide.js v3.2.3 | ||
* (c) 2013-2018 Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/) | ||
* Released under the MIT License. | ||
*/ | ||
|
@@ -1151,16 +1151,6 @@ var MARGIN_TYPE = { | |
|
||
function Gaps (Glide, Components, Events) { | ||
var Gaps = { | ||
/** | ||
* Setups gap value based on settings. | ||
* | ||
* @return {Void} | ||
*/ | ||
mount: function mount() { | ||
this.value = Glide.settings.gap; | ||
}, | ||
|
||
|
||
/** | ||
* Applies gaps between slides. First and last | ||
* slides do not receive it's edge margins. | ||
|
@@ -1211,18 +1201,7 @@ function Gaps (Glide, Components, Events) { | |
* @returns {Number} | ||
*/ | ||
get: function get() { | ||
return Gaps._v; | ||
}, | ||
|
||
|
||
/** | ||
* Sets value of the gap. | ||
* | ||
* @param {String} value | ||
* @return {Void} | ||
*/ | ||
set: function set(value) { | ||
Gaps._v = toInt(value); | ||
return toInt(Glide.settings.gap); | ||
} | ||
}); | ||
|
||
|
@@ -1252,14 +1231,6 @@ function Gaps (Glide, Components, Events) { | |
} | ||
}); | ||
|
||
/** | ||
* Remount component: | ||
* - on updating via API, to update gap value | ||
*/ | ||
Events.on('update', function () { | ||
Gaps.mount(); | ||
}); | ||
|
||
/** | ||
* Apply calculated gaps: | ||
* - after building, so slides (including clones) will receive proper margins | ||
|
@@ -2697,7 +2668,7 @@ function swipe (Glide, Components, Events) { | |
if (settings.swipeThreshold) { | ||
Binder.on(START_EVENTS[0], Components.Html.wrapper, function (event) { | ||
_this.start(event); | ||
}, { passive: true }); | ||
}); | ||
} | ||
|
||
if (settings.dragThreshold) { | ||
|
@@ -2729,7 +2700,7 @@ function swipe (Glide, Components, Events) { | |
|
||
Binder.on(MOVE_EVENTS, Components.Html.wrapper, throttle(function (event) { | ||
_this2.move(event); | ||
}, Glide.settings.throttle), { passive: true }); | ||
}, Glide.settings.throttle)); | ||
}, | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@glidejs/glide", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "Glide.js is a dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more", | ||
"author": "Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/)", | ||
"homepage": "https://glidejs.com", | ||
|