ampproject / ampproject/amphtml
[amp-carousel] Prevent navigation through `touchstart` on iOS
Open
Component: amp-carousel
P3: When Possible
Stale
Type: Feature Request
WG: components
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Reference: https://pqina.nl/blog/blocking-navigation-gestures-on-ios-13-4
We should be able to stop browser navigation when a user swipes from the left or right side of the screen (with some threshold), which will allow the user to scroll the carousel without navigating.
Contributor guide
Research direction
Start with amp-carousel's touchstart handling and the referenced iOS 13.4 navigation-gesture article. Reproduce an edge swipe and verify that scrolling the carousel no longer triggers browser navigation while ordinary carousel interaction remains unchanged; add focused coverage if an existing test location is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100