Fixing bug first add cannot be swiped.
This commit is contained in:
parent
795cd8f193
commit
1b49157ca2
@ -146,14 +146,16 @@ export default class CarouselAd {
|
||||
if (aPrev !== null) {
|
||||
aPrev.classList.remove('show')
|
||||
aPrev.classList.add('remove')
|
||||
window.setTimeout(() => {
|
||||
aPrev.remove()
|
||||
for (const a of allAnchors) {
|
||||
a.remove()
|
||||
}
|
||||
this.isLockedSwipe = false
|
||||
}, 1000)
|
||||
}
|
||||
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
Loading…
Reference in New Issue
Block a user