Skip to content

Commit 225ff78

Browse files
roshangm1osdnk
authored andcommitted
Ignore resistance factor (set to 0) if enabledInnerScrolling is true (#22)
1 parent 310df77 commit 225ff78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export default class BottomSheetBehavior extends Component {
189189
max(
190190
multiply(
191191
sub(snapPoints[0], sqrt(add(1, sub(snapPoints[0], masterOffseted)))),
192-
props.overdragResistanceFactor
193-
),
192+
!props.enabledInnerScrolling ? props.overdragResistanceFactor : 0
193+
),
194194
masterOffseted
195195
)
196196
)

0 commit comments

Comments
 (0)