@@ -134,7 +134,6 @@ export async function initializeGridSwiper() {
134134 gridInitialized = true ;
135135 // For console debugging
136136 window . gridSwiper = state . swiper ;
137- console . log ( "Grid swiper initialized:" , state . swiper ) ;
138137}
139138
140139function addGridEventListeners ( ) {
@@ -175,9 +174,6 @@ function addGridEventListeners() {
175174 { type : "grid" , event : "seekToSlideIndex" } ,
176175 async ( e ) => {
177176 const { globalIndex, searchIndex, totalSlides, isSearchMode } = e . detail ;
178- console . log (
179- `Grid received seekToSlideIndex: globalIndex=${ globalIndex } , searchIndex=${ searchIndex } , totalSlides=${ totalSlides } , isSearchMode=${ isSearchMode } `
180- ) ;
181177 if ( isSearchMode !== slideState . isSearchMode ) {
182178 console . error ( "Mismatched search mode in setSlideIndex event" ) ;
183179 return ;
@@ -364,9 +360,6 @@ async function resetAllSlides() {
364360// The startIndex will be adjusted to be an even multiple of the screen size.
365361// If startIndex is null, load the next batch after the last loaded slide.
366362async function loadBatch ( startIndex = null , append = true ) {
367- console . log (
368- `loadBatch called with startIndex=${ startIndex } , append=${ append } `
369- ) ;
370363 if ( startIndex === null ) {
371364 // Load after the last loaded slide
372365 if ( ! state . swiper . slides ?. length ) {
@@ -483,7 +476,6 @@ async function loadBatch(startIndex = null, append = true) {
483476
484477 updateCurrentSlide ( ) ;
485478
486- console . log ( `loadBatch actually loaded ${ actuallyLoaded } slides.` ) ;
487479 return actuallyLoaded > 0 ;
488480}
489481
0 commit comments