You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dev/src/ScrollMagic/Scene.js
+2-17
Original file line number
Diff line number
Diff line change
@@ -86,31 +86,16 @@ ScrollMagic.Scene = function (options) {
86
86
}
87
87
// validate all options
88
88
validateOption();
89
-
// set event listeners
90
-
Scene
91
-
.on("change.internal",function(e){
92
-
if(e.what!=="loglevel"&&e.what!=="tweenChanges"){// no need for a scene update scene with these options...
93
-
if(e.what==="triggerElement"){
94
-
updateTriggerElementPosition();
95
-
}elseif(e.what==="reverse"){// the only property left that may have an impact on the current scene state. Everything else is handled by the shift event.
96
-
Scene.update();
97
-
}
98
-
}
99
-
})
100
-
.on("shift.internal",function(e){
101
-
updateScrollOffset();
102
-
Scene.update();// update scene to reflect new position
Copy file name to clipboardexpand all lines: dev/src/ScrollMagic/Scene/core.js
+16
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,19 @@
1
+
// set event listeners
2
+
Scene
3
+
.on("change.internal",function(e){
4
+
if(e.what!=="loglevel"&&e.what!=="tweenChanges"){// no need for a scene update scene with these options...
5
+
if(e.what==="triggerElement"){
6
+
updateTriggerElementPosition();
7
+
}elseif(e.what==="reverse"){// the only property left that may have an impact on the current scene state. Everything else is handled by the shift event.
8
+
Scene.update();
9
+
}
10
+
}
11
+
})
12
+
.on("shift.internal",function(e){
13
+
updateScrollOffset();
14
+
Scene.update();// update scene to reflect new position
0 commit comments