@@ -5,32 +5,32 @@ export default {
5
5
{
6
6
to : states . FINISH ,
7
7
when : ( d ) => [
8
- d . isSideInnerFitsPath === true ,
9
- d . isSideInnerFitsViewport === false ,
8
+ d . isSideInnerWithinPath === true ,
9
+ d . isSideInnerWithinViewport === false ,
10
10
d . viewportBottom > d . finishPoint
11
11
]
12
12
} ,
13
13
{
14
14
to : states . FINISH ,
15
15
when : ( d ) => [
16
- d . isSideInnerFitsPath === true ,
17
- d . isSideInnerFitsViewport === true ,
16
+ d . isSideInnerWithinPath === true ,
17
+ d . isSideInnerWithinViewport === true ,
18
18
d . viewportTop + d . sideInnerHeight + d . bottomSpacing > d . finishPoint
19
19
]
20
20
} ,
21
21
{
22
22
to : states . BOTTOM_FIXED ,
23
23
when : ( d ) => [
24
- d . isSideInnerFitsPath === true ,
25
- d . isSideInnerFitsViewport === false ,
24
+ d . isSideInnerWithinPath === true ,
25
+ d . isSideInnerWithinViewport === false ,
26
26
d . viewportBottom > d . sideInnerBottom + d . bottomSpacing
27
27
] ,
28
28
} ,
29
29
{
30
30
to : states . TOP_FIXED ,
31
31
when : ( d ) => [
32
- d . isSideInnerFitsPath === true ,
33
- d . isSideInnerFitsViewport === true ,
32
+ d . isSideInnerWithinPath === true ,
33
+ d . isSideInnerWithinViewport === true ,
34
34
d . viewportTop > d . startPoint - d . topSpacing
35
35
]
36
36
}
@@ -39,7 +39,7 @@ export default {
39
39
[ states . TOP_FIXED ] : [
40
40
{
41
41
to : states . START ,
42
- when : ( d ) => [ d . isSideInnerFitsPath === false ] ,
42
+ when : ( d ) => [ d . isSideInnerWithinPath === false ] ,
43
43
} ,
44
44
{
45
45
to : states . START ,
@@ -53,15 +53,15 @@ export default {
53
53
to : states . UNFIXED ,
54
54
when : ( d ) => [
55
55
d . scrollDirection === 'down' ,
56
- d . isSideInnerFitsViewport === false
56
+ d . isSideInnerWithinViewport === false
57
57
]
58
58
} ,
59
59
] ,
60
60
61
61
[ states . UNFIXED ] : [
62
62
{
63
63
to : states . START ,
64
- when : ( d ) => [ d . isSideInnerFitsPath === false ] ,
64
+ when : ( d ) => [ d . isSideInnerWithinPath === false ] ,
65
65
} ,
66
66
{
67
67
to : states . START ,
@@ -81,14 +81,14 @@ export default {
81
81
{
82
82
to : states . TOP_FIXED ,
83
83
when : ( d ) => [
84
- d . isSideInnerFitsViewport === true ,
84
+ d . isSideInnerWithinViewport === true ,
85
85
d . viewportBottom >= d . sideInnerBottom + d . bottomSpacing
86
86
]
87
87
} ,
88
88
{
89
89
to : states . BOTTOM_FIXED ,
90
90
when : ( d ) => [
91
- d . isSideInnerFitsViewport === false ,
91
+ d . isSideInnerWithinViewport === false ,
92
92
d . viewportBottom > d . sideInnerBottom + d . bottomSpacing
93
93
]
94
94
}
@@ -97,12 +97,12 @@ export default {
97
97
[ states . BOTTOM_FIXED ] : [
98
98
{
99
99
to : states . START ,
100
- when : ( d ) => [ d . isSideInnerFitsPath === false ] ,
100
+ when : ( d ) => [ d . isSideInnerWithinPath === false ] ,
101
101
} ,
102
102
{
103
103
to : states . START ,
104
104
when : ( d ) => [
105
- d . isSideInnerFitsPath === true ,
105
+ d . isSideInnerWithinPath === true ,
106
106
d . sideInnerTop <= d . startPoint - d . topSpacing
107
107
]
108
108
} ,
@@ -112,7 +112,7 @@ export default {
112
112
} ,
113
113
{
114
114
to : states . TOP_FIXED ,
115
- when : ( d ) => [ d . isSideInnerFitsViewport === true , ]
115
+ when : ( d ) => [ d . isSideInnerWithinViewport === true , ]
116
116
} ,
117
117
{
118
118
to : states . FINISH ,
@@ -123,7 +123,7 @@ export default {
123
123
[ states . FINISH ] : [
124
124
{
125
125
to : states . START ,
126
- when : ( d ) => [ d . isSideInnerFitsPath === false ] ,
126
+ when : ( d ) => [ d . isSideInnerWithinPath === false ] ,
127
127
} ,
128
128
{
129
129
to : states . START ,
0 commit comments