File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const magic = {
20
20
deceleration : 0.999 ,
21
21
bouncyFactor : 1 ,
22
22
velocityFactor : P ( 1 , 1.2 ) ,
23
- tossForMaster : 0.4 ,
23
+ toss : 0.4 ,
24
24
coefForTranslatingVelocities : 5
25
25
}
26
26
@@ -34,7 +34,7 @@ const {
34
34
restDisplacementThreshold,
35
35
deceleration,
36
36
velocityFactor,
37
- tossForMaster
37
+ toss
38
38
} = magic
39
39
40
40
@@ -147,6 +147,7 @@ export default class BottomSheetBehavior extends Component {
147
147
const masterOffseted =
148
148
new Value ( init )
149
149
// destination point is a approximation of movement if finger released
150
+ const tossForMaster = props . springConfig . hasOwnProperty ( 'toss' ) ? props . springConfig . toss : toss
150
151
const destinationPoint = add ( masterOffseted , multiply ( tossForMaster , this . masterVelocity ) )
151
152
// method for generating condition for finding the nearest snap point
152
153
const currentSnapPoint = ( i = 0 ) => i + 1 === snapPoints . length ?
You can’t perform that action at this time.
0 commit comments