Skip to content

Commit

Permalink
gallery/carousel fix: restore public function (#36869)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Nov 9, 2021
1 parent a8baaea commit 9e54c0d
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 @@ -405,6 +405,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();
}

/**
* Cancels the touchmove events for the element so that viewer does not
* consider the swipes in the carousel as swipes for changing AMP documents.
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 9e54c0d

Please sign in to comment.