Skip to content

Commit

Permalink
v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed May 4, 2024
1 parent 586440c commit d4de081
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 29 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [2.2.1] - May 4, 2024

- added support for boolean in `disableParallax` and `disableVideo` options
- fixed `jarallaxVideo` support in typings (#224)

## [2.2.0] - Jan 27, 2024

- updated video worker:
Expand Down
2 changes: 1 addition & 1 deletion dist/jarallax-video.js

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

2 changes: 1 addition & 1 deletion dist/jarallax-video.min.js

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

10 changes: 7 additions & 3 deletions dist/jarallax.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Jarallax v2.2.0 (https://github.com/nk-o/jarallax)
* Jarallax v2.2.1 (https://github.com/nk-o/jarallax)
* Copyright 2024 nK <https://nkdev.info>
* Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE)
*/
Expand Down Expand Up @@ -290,7 +290,9 @@ class Jarallax {
self.options.disableParallax = () => disableParallaxRegexp.test(navigator.userAgent);
}
if (typeof self.options.disableParallax !== 'function') {
self.options.disableParallax = () => false;
// Support for `true` option value.
const disableParallaxDefault = self.options.disableParallax;
self.options.disableParallax = () => disableParallaxDefault === true;
}

// prepare disableVideo callback
Expand All @@ -302,7 +304,9 @@ class Jarallax {
self.options.disableVideo = () => disableVideoRegexp.test(navigator.userAgent);
}
if (typeof self.options.disableVideo !== 'function') {
self.options.disableVideo = () => false;
// Support for `true` option value.
const disableVideoDefault = self.options.disableVideo;
self.options.disableVideo = () => disableVideoDefault === true;
}

// custom element to check if parallax in viewport
Expand Down
2 changes: 1 addition & 1 deletion dist/jarallax.cjs.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/jarallax.esm.js

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

2 changes: 1 addition & 1 deletion dist/jarallax.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jarallax.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jarallax.esm.min.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/jarallax.js

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

2 changes: 1 addition & 1 deletion dist/jarallax.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jarallax.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jarallax.min.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jarallax",
"version": "2.2.0",
"version": "2.2.1",
"description": "Smooth parallax scrolling effect for background images, videos and inline elements. Code in pure JavaScript with NO dependencies + jQuery supported. Youtube, Vimeo and Local Videos parallax supported.",
"license": "MIT",
"homepage": "https://github.com/nk-o/jarallax",
Expand Down

0 comments on commit d4de081

Please sign in to comment.