Bug 227580 - Full page scroll snap breaks in iOS Safari 15
Summary: Full page scroll snap breaks in iOS Safari 15
Status: RESOLVED DUPLICATE of bug 226816
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: Other
Hardware: iPhone / iPad Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 04:19 PDT by Johannes Odland
Modified: 2021-07-01 11:04 PDT (History)
2 users (show)

See Also:


Attachments
Movie showing page snapping back to first snap target (632.36 KB, video/mp4)
2021-07-01 04:19 PDT, Johannes Odland
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Odland 2021-07-01 04:19:23 PDT
Created attachment 432677 [details]
Movie showing page snapping back to first snap target

Detected in Safari iOS 15 simulator

How to reproduce:

1. Go to a page with `html {scroll-snap-type: y mandatory;}` and snap target elements sized in vh, such as this codepen: https://codepen.io/johannesodland/pen/zYwGvXx
2. Try to scroll down

Expected result:
Page snaps to next scroll target element

Actual result:
Page snaps back to first target element


The bug might be caused by vh units updating as the user scrolls in iOS 15.

This works fine in 14.5
Comment 1 Simon Fraser (smfr) 2021-07-01 11:04:45 PDT

*** This bug has been marked as a duplicate of bug 226816 ***