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
warn(false,'Position objects returned by "scrollBehavior" with "x" and "y" positions are deprecated, replace it with "left" and "top" respectively. Replace\n\n'+original+'\n\nwith\n\n'+original.replace('"x"','"left"').replace('"y"','"top"'))
130
+
}
123
131
}
124
-
}
125
132
126
-
functionnormalizeOffset(obj: Object): Object{
127
133
return{
128
-
x: isNumber(obj.x) ? obj.x : 0,
129
-
y: isNumber(obj.y) ? obj.y : 0
134
+
behavior: obj.behavior,
135
+
left: isNumber(left) ? left : defaultLeft,
136
+
top: isNumber(top) ? top : defaultTop
130
137
}
131
138
}
132
139
@@ -150,16 +157,21 @@ function scrollToPosition (shouldScroll, position) {
0 commit comments