We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4e7fc7 commit ff8aa4aCopy full SHA for ff8aa4a
photomap/frontend/static/javascript/grid-view.js
@@ -430,8 +430,12 @@ class GridViewManager {
430
// Use a microtask (Promise) to ensure prepend DOM changes are committed
431
Promise.resolve().then(() => {
432
if (this.swiper && !this.swiper.destroyed) {
433
- this.swiper.slideTo(this.currentColumns, 0, false);
434
- this.suppressSlideChange = false;
+ // Use default speed (300ms) for smooth animation, but suppress slide change event
+ this.swiper.slideTo(this.currentColumns, 300, false);
435
+ // Reset suppressSlideChange after transition completes
436
+ setTimeout(() => {
437
+ this.suppressSlideChange = false;
438
+ }, 350); // Slightly longer than animation duration
439
}
440
});
441
0 commit comments