ampproject / ampproject/amphtml
[amp carousel] Unable to swipe carousel to the last slide
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
User getting returned to the second slide after attempt to swipe to the last slide
### Reproduction Steps
1. Go to Chrome desktop browser;
2. Switch to mobile view and open dev tools;
3. Open test link with carousel. Example https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fcomponents%2Famp-carousel.example.1.html%3Fformat%3Dwebsites&format=websites&_gl=1*1his0yl*_ga*YW1wLVE5bVF2ODgtVmprWlZJbjM3UkxleHc.
4. Click on the right arrow/swipe to the right and navigate to the last slide
Actual Result: User unable to switch to the last slide.
Expected Result: Navigation between all slides should be possible without any problems
Video: https://drive.google.com/file/d/1bmH7VQCEhf1LwkZypBbaozxasWMpFTKL/view?usp=sharing
Additional info: Issue reproducible on beta and stable amp versions. Problem appears for image and video carousels
Testing environment:
MacOS Monterey Version 12.3.1
Chrome Version 100.0.4896.127 (Official Build) (x86_64)
### Relevant Logs
_No response_
### Browser(s) Affected
Chrome
### OS(s) Affected
_No response_
### Device(s) Affected
_No response_
### AMP Version Affected
2201071715000
Contributor guide
Research direction
Reproduce the issue using the AMP Playground test link in Chrome desktop with mobile emulation, trying to reach the last slide in both image and video carousels. Trace the carousel navigation entry point from that reproduction; done means every slide, including the last, can be reached without returning to the second slide.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100