@@ -43,50 +43,50 @@ export const mdEnterAnimation = (baseEl: HTMLElement, opts: ModalAnimationOption
4343 . addElement ( baseEl )
4444 . easing ( 'cubic-bezier(0.36,0.66,0.04,1)' )
4545 . duration ( 280 )
46- . addAnimation ( [ backdropAnimation , wrapperAnimation ] )
47- . beforeAddWrite ( ( ) => {
48- if ( expandToScroll ) {
49- // Scroll can only be done when the modal is fully expanded.
50- return ;
51- }
46+ . addAnimation ( [ backdropAnimation , wrapperAnimation ] ) ;
47+ // .beforeAddWrite(() => {
48+ // if (expandToScroll) {
49+ // // Scroll can only be done when the modal is fully expanded.
50+ // return;
51+ // }
5252
53- /**
54- * There are some browsers that causes flickering when
55- * dragging the content when scroll is enabled at every
56- * breakpoint. This is due to the wrapper element being
57- * transformed off the screen and having a snap animation.
58- *
59- * A workaround is to clone the footer element and append
60- * it outside of the wrapper element. This way, the footer
61- * is still visible and the drag can be done without
62- * flickering. The original footer is hidden until the modal
63- * is dismissed. This maintains the animation of the footer
64- * when the modal is dismissed.
65- *
66- * The workaround needs to be done before the animation starts
67- * so there are no flickering issues.
68- */
69- const ionFooter = baseEl . querySelector ( 'ion-footer' ) ;
70- /**
71- * This check is needed to prevent more than one footer
72- * from being appended to the shadow root.
73- * Otherwise, iOS and MD enter animations would append
74- * the footer twice.
75- */
76- const ionFooterAlreadyAppended = baseEl . shadowRoot ! . querySelector ( 'ion-footer' ) ;
77- if ( ionFooter && ! ionFooterAlreadyAppended ) {
78- const footerHeight = ionFooter . clientHeight ;
79- const clonedFooter = ionFooter . cloneNode ( true ) as HTMLIonFooterElement ;
53+ // /**
54+ // * There are some browsers that causes flickering when
55+ // * dragging the content when scroll is enabled at every
56+ // * breakpoint. This is due to the wrapper element being
57+ // * transformed off the screen and having a snap animation.
58+ // *
59+ // * A workaround is to clone the footer element and append
60+ // * it outside of the wrapper element. This way, the footer
61+ // * is still visible and the drag can be done without
62+ // * flickering. The original footer is hidden until the modal
63+ // * is dismissed. This maintains the animation of the footer
64+ // * when the modal is dismissed.
65+ // *
66+ // * The workaround needs to be done before the animation starts
67+ // * so there are no flickering issues.
68+ // */
69+ // const ionFooter = baseEl.querySelector('ion-footer');
70+ // /**
71+ // * This check is needed to prevent more than one footer
72+ // * from being appended to the shadow root.
73+ // * Otherwise, iOS and MD enter animations would append
74+ // * the footer twice.
75+ // */
76+ // const ionFooterAlreadyAppended = baseEl.shadowRoot!.querySelector('ion-footer');
77+ // if (ionFooter && !ionFooterAlreadyAppended) {
78+ // const footerHeight = ionFooter.clientHeight;
79+ // const clonedFooter = ionFooter.cloneNode(true) as HTMLIonFooterElement;
8080
81- baseEl . shadowRoot ! . appendChild ( clonedFooter ) ;
82- ionFooter . style . setProperty ( 'display' , 'none' ) ;
83- ionFooter . setAttribute ( 'aria-hidden' , 'true' ) ;
81+ // baseEl.shadowRoot!.appendChild(clonedFooter);
82+ // ionFooter.style.setProperty('display', 'none');
83+ // ionFooter.setAttribute('aria-hidden', 'true');
8484
85- // Padding is added to prevent some content from being hidden.
86- const page = baseEl . querySelector ( '.ion-page' ) as HTMLElement ;
87- page . style . setProperty ( 'padding-bottom' , `${ footerHeight } px` ) ;
88- }
89- } ) ;
85+ // // Padding is added to prevent some content from being hidden.
86+ // const page = baseEl.querySelector('.ion-page') as HTMLElement;
87+ // page.style.setProperty('padding-bottom', `${footerHeight}px`);
88+ // }
89+ // });
9090
9191 if ( contentAnimation ) {
9292 baseAnimation . addAnimation ( contentAnimation ) ;
0 commit comments