File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ export const scroller = () => {
162
162
x = options . x === undefined ? defaults . x : options . x ;
163
163
y = options . y === undefined ? defaults . y : options . y ;
164
164
165
- var cumulativeOffsetContainer = _ . cumulativeOffset ( container ) ;
166
- var cumulativeOffsetElement = _ . cumulativeOffset ( element ) ;
165
+ let cumulativeOffsetContainer = _ . cumulativeOffset ( container ) ;
166
+ let cumulativeOffsetElement = _ . cumulativeOffset ( element ) ;
167
167
168
168
if ( typeof offset === "function" ) {
169
169
offset = offset ( element , container ) ;
@@ -212,7 +212,7 @@ export const scroller = () => {
212
212
if ( onStart ) onStart ( element ) ;
213
213
214
214
if ( ! diffY && ! diffX ) {
215
- onDone ( element ) ;
215
+ if ( onDone ) onDone ( element ) ;
216
216
return ;
217
217
}
218
218
You can’t perform that action at this time.
0 commit comments