Swiper loop Mobile bug

 var mySwiper = new Swiper(".swiper-container", {
        slidesPerView: 5,
        spaceBetween: 20,
        speed: 1000,
        autoplay: {
            delay: 800,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        loop: true,
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev",
        },
    });
 var windowW = $(window).width();
    if (windowW <= 768) {
        console.log("cccc")
        mySwiper = new Swiper(".swiper-container", {
            speed: 1000,
            autoplay: {
                delay: 800,
                stopOnLastSlide: false,
                disableOnInteraction: false,
            },
            loop: true,
            navigation: {
                nextEl: ".swiper-button-next",
                prevEl: ".swiper-button-prev",
            },
        });
    }
    $(window).resize(function () {
        myChart1.resize();
        myChart2.resize();
        var windowW = $(window).width();
        if (windowW <= 768) {
            console.log("aa")
            mySwiper.destroy(false);
            mySwiper = new Swiper(".swiper-container", {
                speed: 1000,
                autoplay: {
                    delay: 800,
                    stopOnLastSlide: false,
                    disableOnInteraction: false,
                },
                loop: true,
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                },
            });
        }
        else {
            console.log("bb")
            mySwiper.destroy(false);
            mySwiper = new Swiper(".swiper-container", {
                slidesPerView: 5,
                spaceBetween: 20,
                speed: 1000,
                autoplay: {
                    delay: 800,
                    stopOnLastSlide: false,
                    disableOnInteraction: false,
                },
                loop: true,
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                },
            });
        }
    });
Mar.04,2021

if you don't say the version, just press the latest version.

  official documents . 

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b368b6-2c014.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b368b6-2c014.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?