|
@@ -235,23 +235,22 @@ class ViewerInner extends Component {
|
|
|
this.lastProgress = trigger.progress;
|
|
|
}
|
|
|
}
|
|
|
- clearTimeout(timer),
|
|
|
- (timer = setTimeout(() => {
|
|
|
- if (
|
|
|
- this.frame > this.loadedCount &&
|
|
|
- !this.notLoadedTween.isActive
|
|
|
- ) {
|
|
|
- this.props.debug &&
|
|
|
- console.warn(this.props.path, "fast forward");
|
|
|
- this.enterShowElements();
|
|
|
- this.notLoadedTween = gsap.to(this.processBarRef.current, {
|
|
|
- backgroundColor: "#8888a0",
|
|
|
- duration: 0.33,
|
|
|
- repeat: 1,
|
|
|
- yoyo: !0,
|
|
|
- });
|
|
|
- }
|
|
|
- }, 100));
|
|
|
+ clearTimeout(timer);
|
|
|
+ timer = setTimeout(() => {
|
|
|
+ if (
|
|
|
+ this.frame > this.loadedCount &&
|
|
|
+ !this.notLoadedTween.isActive
|
|
|
+ ) {
|
|
|
+ this.props.debug && console.warn(this.props.path, "fast forward");
|
|
|
+ this.enterShowElements();
|
|
|
+ this.notLoadedTween = gsap.to(this.processBarRef.current, {
|
|
|
+ backgroundColor: "#8888a0",
|
|
|
+ duration: 0.33,
|
|
|
+ repeat: 1,
|
|
|
+ yoyo: !0,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, 100);
|
|
|
},
|
|
|
onScrubComplete: () => {
|
|
|
this.justScrolled = true;
|