Skip to content

Commit d659dcd

Browse files
committed
bug fix
1 parent fa3cb60 commit d659dcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jquery.data-parallax.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@
396396
return this._needsUpdate();
397397
},
398398
_needsUpdate: function() {
399-
return this.prevState === Scene.STATE_DURING ||
400-
this.state === Scene.STATE_DURING ||
401-
(typeof this.prevState === "undefined" && this.state === Scene.STATE_AFTER);
399+
return this.state === Scene.STATE_DURING ||
400+
(typeof this.prevState === "undefined" && this.state === Scene.STATE_AFTER) ||
401+
this.prevState != this.state;
402402
},
403403
updateStart: function() {
404404
this.start = Math.max(this.getOffset() - this.triggerHook, 0);

0 commit comments

Comments
 (0)