@@ -27,6 +27,8 @@ function resizablePanel(panel) {
2727 let panelMaxWidth ;
2828 let visibleByBreakpoint ;
2929
30+ const isPushingPanel = effect !== 'cover' && effect !== 'floating' ;
31+
3032 function transformCSSWidth ( v ) {
3133 if ( ! v ) return null ;
3234 if ( v . indexOf ( '%' ) >= 0 || v . indexOf ( 'vw' ) >= 0 ) {
@@ -60,13 +62,13 @@ function resizablePanel(panel) {
6062 $el . transition ( 0 ) ;
6163 $el . addClass ( 'panel-resizing' ) ;
6264 $htmlEl . css ( 'cursor' , 'col-resize' ) ;
63- if ( effect !== 'cover' || visibleByBreakpoint ) {
65+ if ( isPushingPanel || visibleByBreakpoint ) {
6466 $viewEl = $ ( panel . getViewEl ( ) ) ;
6567 if ( panel . $containerEl && panel . $containerEl . hasClass ( 'page' ) ) {
6668 $viewEl . add ( panel . $containerEl . children ( '.page-content, .tabs, .fab' ) ) ;
6769 }
6870 }
69- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
71+ if ( isPushingPanel && ! visibleByBreakpoint ) {
7072 $backdropEl . transition ( 0 ) ;
7173 $viewEl . transition ( 0 ) ;
7274 }
@@ -89,7 +91,7 @@ function resizablePanel(panel) {
8991
9092 panel . resizableWidth = newPanelWidth ;
9193 $el [ 0 ] . style . width = `${ newPanelWidth } px` ;
92- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
94+ if ( isPushingPanel && ! visibleByBreakpoint ) {
9395 if ( $viewEl ) {
9496 $viewEl . transform (
9597 `translate3d(${ side === 'left' ? newPanelWidth : - newPanelWidth } px, 0, 0)` ,
@@ -119,14 +121,14 @@ function resizablePanel(panel) {
119121
120122 $htmlEl [ 0 ] . style . setProperty ( `--f7-panel-${ side } -width` , `${ panel . resizableWidth } px` ) ;
121123 $el [ 0 ] . style . width = '' ;
122- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
124+ if ( isPushingPanel && ! visibleByBreakpoint ) {
123125 $viewEl . transform ( '' ) ;
124126 $backdropEl . transform ( '' ) ;
125127 }
126128 $el . removeClass ( 'panel-resizing' ) ;
127129 nextFrame ( ( ) => {
128130 $el . transition ( '' ) ;
129- if ( effect !== 'cover' ) {
131+ if ( isPushingPanel ) {
130132 $backdropEl . transition ( '' ) ;
131133 if ( $viewEl ) $viewEl . transition ( '' ) ;
132134 }
0 commit comments