Skip to content

Commit

Permalink
feat: add loop to images slider
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Feb 16, 2024
1 parent 17578c2 commit c468673
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/grw-poi-detail/grw-poi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class GrwPoiDetail {
pagination: { el: this.paginationElPoiRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperPoiRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class GrwTouristicContentCard {
pagination: { el: this.paginationElTouristicContentRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperTouristicContentRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class GrwTouristicContentDetail {
pagination: { el: this.paginationElImagesRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperImagesRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class GrwTouristicEvent {
pagination: { el: this.paginationElTouristicEventRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperTouristicEventRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class GrwTouristicEventDetail {
pagination: { el: this.paginationElImagesRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperImagesRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand Down
6 changes: 6 additions & 0 deletions src/components/grw-trek-detail/grw-trek-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export class GrwTrekDetail {
pagination: { el: this.paginationElImagesRef },
allowTouchMove: false,
keyboard: false,
loop: true,
});
this.swiperImagesRef.onfullscreenchange = () => {
this.displayFullscreen = !this.displayFullscreen;
Expand All @@ -207,6 +208,7 @@ export class GrwTrekDetail {
slidesPerView: 2.5,
},
},
loop: true,
});
this.swiperPois = new Swiper(this.swiperPoisRef, {
modules: [FreeMode, Mousewheel, Scrollbar],
Expand All @@ -226,6 +228,7 @@ export class GrwTrekDetail {
slidesPerView: 2.5,
},
},
loop: true,
});
this.swiperInformationDesks = new Swiper(this.swiperInformationDesksRef, {
modules: [FreeMode, Mousewheel, Scrollbar],
Expand All @@ -245,6 +248,7 @@ export class GrwTrekDetail {
slidesPerView: 2.5,
},
},
loop: true,
});
this.swiperTouristicContents = new Swiper(this.swiperTouristicContentsRef, {
modules: [FreeMode, Mousewheel, Scrollbar],
Expand All @@ -264,6 +268,7 @@ export class GrwTrekDetail {
slidesPerView: 2.5,
},
},
loop: true,
});
this.swiperTouristicEvents = new Swiper(this.swiperTouristicEventsRef, {
modules: [FreeMode, Mousewheel, Scrollbar],
Expand All @@ -283,6 +288,7 @@ export class GrwTrekDetail {
slidesPerView: 2.5,
},
},
loop: true,
});
if (this.presentationRef) {
this.presentationObserver = new IntersectionObserver(
Expand Down

0 comments on commit c468673

Please sign in to comment.