Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed Aug 8, 2023
1 parent b668b3b commit e66f7e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function getTransformedScene (scene, root, viewportSize, isHorizontal, absoluteO

let parent = element.offsetParent;
let elementLayoutStart = 0;
let isFixed = false;
let isFixed = elementStyle.position === 'fixed';
const elementOffset = getRectStart(element, isHorizontal, isElementSticky);

// if we have sticky end (bottom or right) ignore offset for this element because it will stick to its parent's start edge
Expand Down Expand Up @@ -317,7 +317,7 @@ function getTransformedScene (scene, root, viewportSize, isHorizontal, absoluteO

if (!parent) {
// only if offsetParent is null do we know that the fixed element is actually fixed to the viewport and we need to set duration to 0
isFixed = nodeStyle.position = 'fixed';
isFixed = nodeStyle.position === 'fixed';
}
}

Expand Down Expand Up @@ -587,22 +587,22 @@ function getController (config) {
rootMargin: _config.viewportRootMargin,
threshold: 0
});
}

_config.scenes.forEach(scene => {
if (scene.viewSource) {
let scenesArray = scenesByElement.get(scene.viewSource);
_config.scenes.forEach(scene => {
if (scene.viewSource) {
let scenesArray = scenesByElement.get(scene.viewSource);

if (!scenesArray) {
scenesArray = [];
scenesByElement.set(scene.viewSource, scenesArray);
if (!scenesArray) {
scenesArray = [];
scenesByElement.set(scene.viewSource, scenesArray);

viewportObserver.observe(scene.viewSource);
}
viewportObserver.observe(scene.viewSource);
}

scenesArray.push(scene);
}
});
scenesArray.push(scene);
}
});
}

/**
* Updates progress in all scene effects.
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>fizban 0.6.1 | Documentation</title>
<title>fizban 0.6.2 | Documentation</title>
<meta name='description' content='Tiny library for performant scroll-driven effects'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>fizban</h3>
<div class='mb1'><code>0.6.1</code></div>
<div class='mb1'><code>0.6.2</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down

0 comments on commit e66f7e4

Please sign in to comment.