You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4ddbbdd
Browse filesBrowse the repository at this point in the historyBrowse files
"Hover over the inline app and scroll. The page keeps moving normally.",
10
+
gestureLock:
11
+
"Hover over the fixed app surface and scroll. The page stops even though there is no scrollbar.",
12
+
internalScroll:
13
+
"Hover over the nested list and scroll. The app captures the scroll inside the post.",
14
+
};
15
+
16
+
constmobileExamples: Record<
17
+
Example,
18
+
{
19
+
code: string;
20
+
details: string;
21
+
outcome: string;
22
+
title: string;
23
+
}
24
+
>={
25
+
fixed: {
26
+
code: "touch-action: pan-y;",
27
+
details: "Swipe the green surface. The page should keep moving.",
28
+
outcome: "Acceptable: vertical swipes stay with the feed.",
29
+
title: "Feed stays scrollable",
30
+
},
31
+
gestureLock: {
32
+
code: "touch-action: none;",
33
+
details: "Swipe the orange surface. It captures the gesture.",
34
+
outcome: "Rejected: no scrollbar, but still trapped.",
35
+
title: "No scrollbar can still trap swipes",
36
+
},
37
+
internalScroll: {
38
+
code: "overflow-y: auto;",
39
+
details: "Swipe the mini list. It scrolls inside the post.",
40
+
outcome: "Rejected: nested scrolling competes with the feed.",
41
+
title: "Internal scrolling competes with the feed",
42
+
},
43
+
};
44
+
7
45
constexamples: Array<{
8
-
description: string;
9
46
id: Example;
10
47
label: string;
11
48
}>=[
12
49
{
13
-
description:
14
-
"Start scrolling until you hit the trap, then hover over the app and scroll. The app captures the scroll, and the Reddit feed stops moving.",
15
50
id: "internalScroll",
16
51
label: "Internal scroll trap",
17
52
},
18
53
{
19
-
description:
20
-
"Start scrolling until you hit the trap, then hover over the app and scroll. The app captures the scroll even though no scrollbar is visible, and the Reddit feed stops moving.",
21
54
id: "gestureLock",
22
55
label: "No scrollbar trap",
23
56
},
24
57
{
25
-
description:
26
-
"Start scrolling until you hit the app, then hover over it and scroll. The app does not capture the scroll, and the Reddit feed continues moving normally.",
0 commit comments