@@ -156,7 +156,6 @@ export default class FloatingButtons {
156156 window . addEventListener ( 'scroll' , ( ) => {
157157 // on scroll we only need to check the mode; throttle via rAF
158158 if ( ! this . _ticking ) {
159- console . log ( 'ticking' , this . _ticking ) ;
160159 this . _ticking = true ;
161160 window . requestAnimationFrame ( ( ) => {
162161 this . updatePositionMode ( ) ;
@@ -190,8 +189,6 @@ export default class FloatingButtons {
190189 updatePositionMode ( ) {
191190 if ( ! this . advancedSearchPanel || ! this . floatingButtonContainer ) return ;
192191
193- console . log ( 'update' ) ;
194-
195192 // always refresh natural height (don't rely on stale stored value)
196193 this . advancedSearchPanelHeight = this . _getNaturalPanelHeight ( ) ;
197194
@@ -245,10 +242,8 @@ export default class FloatingButtons {
245242 // Only update mode if it changed
246243 if ( newMode !== this . _currentMode ) {
247244 if ( newMode === PositionMode . FIXED ) {
248- console . log ( 'setFixedMode' ) ;
249245 this . _setFixedMode ( ) ;
250246 } else {
251- console . log ( 'setScrollableMode' ) ;
252247 this . _setScrollableMode ( ) ;
253248 }
254249 this . _currentMode = newMode ;
@@ -272,12 +267,6 @@ export default class FloatingButtons {
272267 _setScrollableMode ( ) {
273268 if ( ! this . floatingButtonContainer || ! this . advancedSearchPanel ) return ;
274269
275- // // if already scrollable, nothing to do
276- // if (this.floatingButtonContainer.classList.contains('floatingButtons-fab-scrollable-wrapper')) {
277- // console.log('abort');
278- // return;
279- // }
280-
281270 // ensure panel can be a positioned ancestor
282271 const panelStyle = window . getComputedStyle ( this . advancedSearchPanel ) ;
283272 if ( panelStyle . position === 'static' ) {
@@ -317,7 +306,6 @@ export default class FloatingButtons {
317306 const centerX = panelRect . left + ( panelRect . width / 2 ) + scrollLeft ;
318307 this . floatingButtonContainer . style . left = `${ centerX } px` ;
319308 this . floatingButtonContainer . style . transform = 'translateX(-50%)' ;
320- console . log ( 'panelRect' , panelRect , 'scrollLeft' , scrollLeft ) ;
321309 }
322310
323311 // restore panel position style if we changed it earlier
0 commit comments