@@ -75,7 +75,7 @@ export const createSheetGesture = (
7575 BACKDROP_KEYFRAMES : backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop ,
7676 CONTENT_KEYFRAMES : [
7777 { offset : 0 , maxHeight : '100%' } ,
78- { offset : 1 , maxHeight : '0%' } ,
78+ { offset : 1 , maxHeight : '0%' } ,
7979 ] ,
8080 } ;
8181
@@ -91,11 +91,12 @@ export const createSheetGesture = (
9191 const backdropAnimation = animation . childAnimations . find ( ( ani ) => ani . id === 'backdropAnimation' ) ;
9292 let contentAnimation : Animation | undefined ;
9393 if ( snapBreakpoints . length > 0 ) {
94- contentAnimation =
95- animation . addAnimation (
96- createAnimation ( 'contentAnimation' )
97- . addElement ( contentEl ! . parentElement ! )
98- . keyframes ( SheetDefaults . CONTENT_KEYFRAMES ) )
94+ contentAnimation = animation
95+ . addAnimation (
96+ createAnimation ( 'contentAnimation' )
97+ . addElement ( contentEl ! . parentElement ! )
98+ . keyframes ( SheetDefaults . CONTENT_KEYFRAMES )
99+ )
99100 . childAnimations . find ( ( ani ) => ani . id === 'contentAnimation' ) ;
100101 }
101102
@@ -374,7 +375,10 @@ export const createSheetGesture = (
374375 * re-enabled. Native iOS allows for scrolling on the sheet modal as soon
375376 * as the gesture is released, so we align with that.
376377 */
377- if ( contentEl && ( snapToBreakpoint === breakpoints [ breakpoints . length - 1 ] || snapBreakpoints . includes ( snapToBreakpoint ) ) ) {
378+ if (
379+ contentEl &&
380+ ( snapToBreakpoint === breakpoints [ breakpoints . length - 1 ] || snapBreakpoints . includes ( snapToBreakpoint ) )
381+ ) {
378382 contentEl . scrollY = true ;
379383 }
380384
0 commit comments