Skip to content

Commit

Permalink
šŸ› scenes not correctly hidden from the view in case the view is largeā€¦
Browse files Browse the repository at this point in the history
ā€¦r than its content
  • Loading branch information
mickaelchanrion committed Jul 17, 2019
1 parent dbf6e36 commit 1a9d40b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions dist/rolly.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* rolly.js v0.3.3
* rolly.js v0.3.4
* (c) 2019 Mickael Chanrion
* Released under the MIT license
*/
Expand Down Expand Up @@ -214,7 +214,7 @@ Scene.prototype.change = function change (globalState) {
options.enter.call(this, data);
}
} else if (this.checkLeave(active, this.state.progress)) {
// Leave
// Leave
this.state.active = false;
if (sceneOptions.leave) {
sceneOptions.leave.call(this, data);
Expand All @@ -234,7 +234,7 @@ Scene.prototype.change = function change (globalState) {
} else {
this.DOM.context.style[
globalState.transformPrefix
] = utils.getCSSTransform(globalState.bounding, this.options.vertical);
] = utils.getCSSTransform(Math.max(globalState.bounding, viewSize + 50), this.options.vertical);
this.DOM.context.style.willChange = null;
}

Expand Down
Loading

0 comments on commit 1a9d40b

Please sign in to comment.