Skip to content

Commit

Permalink
4.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
devenini committed Oct 21, 2021
1 parent 926c34d commit 55b8a89
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/locomotive-scroll.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! locomotive-scroll v4.1.1 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
/*! locomotive-scroll v4.1.2 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
html.has-scroll-smooth {
overflow: hidden; }

Expand Down
13 changes: 10 additions & 3 deletions dist/locomotive-scroll.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* locomotive-scroll v4.1.1 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
/* locomotive-scroll v4.1.2 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
Expand Down Expand Up @@ -1340,7 +1340,7 @@ var _default$1 = /*#__PURE__*/function (_Core) {

window.scrollTo({
top: offset,
behavior: 'smooth'
behavior: options.duration === 0 ? 'auto' : 'smooth'
});
}
}, {
Expand Down Expand Up @@ -2153,6 +2153,9 @@ var _default$2 = /*#__PURE__*/function (_Core) {
key: "stopScrolling",
value: function stopScrolling() {
cancelAnimationFrame(this.checkScrollRaf); // Prevent checkScroll to continue looping
//Pevent scrollbar glitch/locking

this.startScrollTs = undefined;

if (this.scrollToRaf) {
cancelAnimationFrame(this.scrollToRaf);
Expand Down Expand Up @@ -2511,7 +2514,11 @@ var _default$2 = /*#__PURE__*/function (_Core) {
key: "releaseScrollBar",
value: function releaseScrollBar(e) {
this.isDraggingScrollbar = false;
this.html.classList.add(this.scrollingClass);

if (this.isScrolling) {
this.html.classList.add(this.scrollingClass);
}

this.html.classList.remove(this.draggingClass);
}
}, {
Expand Down
13 changes: 10 additions & 3 deletions dist/locomotive-scroll.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* locomotive-scroll v4.1.1 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
/* locomotive-scroll v4.1.2 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -1346,7 +1346,7 @@

window.scrollTo({
top: offset,
behavior: 'smooth'
behavior: options.duration === 0 ? 'auto' : 'smooth'
});
}
}, {
Expand Down Expand Up @@ -2159,6 +2159,9 @@
key: "stopScrolling",
value: function stopScrolling() {
cancelAnimationFrame(this.checkScrollRaf); // Prevent checkScroll to continue looping
//Pevent scrollbar glitch/locking

this.startScrollTs = undefined;

if (this.scrollToRaf) {
cancelAnimationFrame(this.scrollToRaf);
Expand Down Expand Up @@ -2517,7 +2520,11 @@
key: "releaseScrollBar",
value: function releaseScrollBar(e) {
this.isDraggingScrollbar = false;
this.html.classList.add(this.scrollingClass);

if (this.isScrolling) {
this.html.classList.add(this.scrollingClass);
}

this.html.classList.remove(this.draggingClass);
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion dist/locomotive-scroll.min.css

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

2 changes: 1 addition & 1 deletion dist/locomotive-scroll.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/scripts/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/styles/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "locomotive-scroll",
"version": "4.1.2",
"version": "4.1.3",
"description": "Detection of elements in viewport & smooth scrolling with parallax effects.",
"repository": "locomotivemtl/locomotive-scroll",
"author": "Locomotive <[email protected]> (https://locomotive.ca)",
Expand Down

0 comments on commit 55b8a89

Please sign in to comment.