File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
saveScrollPosition ,
9
9
getScrollPosition ,
10
10
isValidPosition ,
11
- normalizePosotion ,
11
+ normalizePosition ,
12
12
getElementPosition
13
13
} from '../util/scroll-position'
14
14
@@ -94,10 +94,10 @@ export class HTML5History extends History {
94
94
if ( el ) {
95
95
position = getElementPosition ( el )
96
96
} else if ( isValidPosition ( shouldScroll ) ) {
97
- position = normalizePosotion ( shouldScroll )
97
+ position = normalizePosition ( shouldScroll )
98
98
}
99
99
} else if ( isObject && isValidPosition ( shouldScroll ) ) {
100
- position = normalizePosotion ( shouldScroll )
100
+ position = normalizePosition ( shouldScroll )
101
101
}
102
102
103
103
if ( position ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function isValidPosition (obj: Object): boolean {
26
26
return isNumber ( obj . x ) || isNumber ( obj . y )
27
27
}
28
28
29
- export function normalizePosotion ( obj : Object ) : Object {
29
+ export function normalizePosition ( obj : Object ) : Object {
30
30
return {
31
31
x : isNumber ( obj . x ) ? obj . x : window . pageXOffset ,
32
32
y : isNumber ( obj . y ) ? obj . y : window . pageYOffset
You can’t perform that action at this time.
0 commit comments