@@ -38,9 +38,9 @@ class MDCBottomSheetControllerDelegateImpl extends NSObject {
38
38
//normalized = (value - min) / (max - min);
39
39
let normalized = 0 ;
40
40
if ( yOffset + bottomPadding > heightScreen - heightCollapsedSheet ) {
41
- normalized = ( ( heightScreen - yOffset - bottomPadding ) - 0 ) / ( heightCollapsedSheet - 0 ) - 1 ;
41
+ normalized = ( heightScreen - yOffset - bottomPadding - 0 ) / ( heightCollapsedSheet - 0 ) - 1 ;
42
42
} else {
43
- normalized = ( ( heightScreen - yOffset ) - heightCollapsedSheet ) / ( heightScreen - heightCollapsedSheet ) ;
43
+ normalized = ( heightScreen - yOffset - heightCollapsedSheet ) / ( heightScreen - heightCollapsedSheet ) ;
44
44
}
45
45
owner . _onChangeStateBottomSheetCallback ( StateBottomSheet . DRAGGING , normalized ) ;
46
46
} else {
@@ -71,7 +71,7 @@ class MDCBottomSheetControllerDelegateImpl extends NSObject {
71
71
}
72
72
} else {
73
73
if ( owner && owner . _onChangeStateBottomSheetCallback ) {
74
- owner . _onChangeStateBottomSheetCallback ( state === MDCSheetState . Extended ? StateBottomSheet . EXPANDED : StateBottomSheet . EXPANDED )
74
+ owner . _onChangeStateBottomSheetCallback ( state === MDCSheetState . Extended ? StateBottomSheet . EXPANDED : StateBottomSheet . EXPANDED ) ;
75
75
}
76
76
}
77
77
}
@@ -443,7 +443,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
443
443
if ( options . trackingScrollView ) {
444
444
const scrollView = this . getViewById ( options . trackingScrollView ) ;
445
445
if ( scrollView && scrollView . nativeViewProtected instanceof UIScrollView ) {
446
- ( bottomSheet . presentationController as MDCBottomSheetPresentationController ) . trackingScrollView = scrollView . nativeViewProtected ;
446
+ bottomSheet . trackingScrollView = scrollView . nativeViewProtected ;
447
447
}
448
448
}
449
449
controller . nsAnimated = true ;
@@ -499,4 +499,4 @@ export function install() {
499
499
mixinInstalled = true ;
500
500
overrideBottomSheet ( ) ;
501
501
}
502
- }
502
+ }
0 commit comments