Skip to content

Commit

Permalink
πŸ› [Amp story] Prevent pointer events on images (#35929)
Browse files Browse the repository at this point in the history
* Prevent pointer events on images.

* Update comment.

* Select images in grid layer.
  • Loading branch information
processprocess committed Sep 2, 2021
1 parent 0fd840c commit cdde8d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions/amp-story/1.0/amp-story.css
Expand Up @@ -366,6 +366,13 @@ amp-story-grid-layer[anchor*="right"] {
position: absolute !important;
}

/**
* Prevents long-press image preview on iOS 15 that breaks pause UX.
*/
amp-story-grid-layer amp-img img {
pointer-events: none !important;
}

/**
* Prevents amp-video to layout until its element has been swapped by the media
* pool. See #26718 for context.
Expand Down

0 comments on commit cdde8d6

Please sign in to comment.