Skip to content

Commit

Permalink
gallery/carousel fix: restore public function (#36869)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9e54c0d)
  • Loading branch information
samouri authored and ampprojectbot committed Nov 10, 2021
1 parent 639735d commit 51dc7e1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/amp-carousel/0.1/scrollable-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,16 @@ export class AmpScrollableCarousel extends AMP.BaseElement {
return this.pos_ != maxPos;
}

/** Used by amp-lightbox-gallery */
interactionNext() {
this.controls_.interactionNext();
}

/** Used by amp-lightbox-gallery */
interactionPrev() {
this.controls_.interactionPrev();
}

/**
* Used by amp-lightbox-gallery
*
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-carousel/0.1/slidescroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,16 @@ export class AmpSlideScroll extends AMP.BaseElement {
}
}

/** Used by amp-lightbox-gallery */
interactionNext() {
this.controls_.interactionNext();
}

/** Used by amp-lightbox-gallery */
interactionPrev() {
this.controls_.interactionPrev();
}

/**
* Does all the work needed to proceed to next
* desired direction.
Expand Down

0 comments on commit 51dc7e1

Please sign in to comment.