Skip to content

Commit

Permalink
Subscribe scrollEventProgress option to attributes that need RAF
Browse files Browse the repository at this point in the history
  • Loading branch information
arnvvd committed May 30, 2023
1 parent 5f8d411 commit 0662905
Show file tree
Hide file tree
Showing 19 changed files with 13,540 additions and 29 deletions.
2 changes: 1 addition & 1 deletion bundled/locomotive-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
}();

/** Defined attributes that need a requestAnimationFrame */
var ATTRIBUTES_THAT_NEED_RAF = ['scrollOffset', 'scrollPosition', 'scrollModuleProgress', 'scrollCssProgress', 'scrollSpeed'];
var ATTRIBUTES_THAT_NEED_RAF = ['scrollOffset', 'scrollPosition', 'scrollModuleProgress', 'scrollCssProgress', 'scrollEventProgress', 'scrollSpeed'];
/** Default root margins */
var TRIGGER_ROOT_MARGIN = '-1px -1px -1px -1px';
var RAF_ROOT_MARGIN = '100% 100% 100% 100%'; // Add 100vh top/bottom && 100vw left/right to use a biggest value with data-scroll-speed
Expand Down
2 changes: 1 addition & 1 deletion bundled/locomotive-scroll.min.js

Large diffs are not rendered by default.

1,392 changes: 1,391 additions & 1 deletion dist/locomotive-scroll.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/locomotive-scroll.cjs.map

Large diffs are not rendered by default.

1,388 changes: 1,387 additions & 1 deletion dist/locomotive-scroll.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/locomotive-scroll.mjs.map

Large diffs are not rendered by default.

1,315 changes: 1,314 additions & 1 deletion dist/locomotive-scroll.modern.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/locomotive-scroll.modern.mjs.map

Large diffs are not rendered by default.

1,398 changes: 1,396 additions & 2 deletions dist/locomotive-scroll.umd.js

Large diffs are not rendered by default.

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

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": "5.0.0-beta.7",
"version": "5.0.0-beta.8",
"description": "Detection of elements in viewport & smooth scrolling with parallax effects.",
"license": "MIT",
"homepage": "https://github.com/locomotivemtl/locomotive-scroll",
Expand Down
1 change: 1 addition & 0 deletions src/core/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ATTRIBUTES_THAT_NEED_RAF = [
'scrollPosition',
'scrollModuleProgress',
'scrollCssProgress',
'scrollEventProgress',
'scrollSpeed',
];

Expand Down
7,012 changes: 7,008 additions & 4 deletions www/demo/dist/assets/scripts/app.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions www/demo/dist/assets/scripts/app.js.map

Large diffs are not rendered by default.

1,022 changes: 1,021 additions & 1 deletion www/demo/dist/assets/styles/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/demo/dist/assets/styles/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/demo/loconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"paths": {
"url": "locomotive-scroll-v5.test",
"url": "locomotive-scroll.test",
"src": "./assets",
"dest": "./dist",
"images": {
Expand Down
12 changes: 6 additions & 6 deletions www/demo/package-lock.json

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

5 changes: 4 additions & 1 deletion www/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
!> Locomotive Scroll v.5 is currently in **beta**. Be prepared for breaking changes compared to previous versions.
> **Warning**
>
> Locomotive Scroll v.5 is currently in **beta**. Be prepared for breaking changes compared to previous versions.
# Locomotive Scroll v.5

> Detection of elements in viewport & smooth scrolling with parallax effects.
Expand Down

0 comments on commit 0662905

Please sign in to comment.