Fixing bug first add cannot be swiped.

This commit is contained in:
Sergiotarxz 2023-11-29 17:20:08 +01:00
parent 795cd8f193
commit 1b49157ca2
2 changed files with 10 additions and 8 deletions

View File

@ -146,14 +146,16 @@ export default class CarouselAd {
if (aPrev !== null) {
aPrev.classList.remove('show')
aPrev.classList.add('remove')
}
window.setTimeout(() => {
if (aPrev !== null) {
aPrev.remove()
}
for (const a of allAnchors) {
a.remove()
}
this.isLockedSwipe = false
}, 1000)
}
}, 200)
this.timeoutNumber = window.setTimeout(() => {
this.loadOneAd()

File diff suppressed because one or more lines are too long