We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56408a5 commit eb3e1f3Copy full SHA for eb3e1f3
fixtures/view-transition/src/components/SwipeRecognizer.js
@@ -25,7 +25,14 @@ export default function SwipeRecognizer({
25
if (activeGesture.current !== null) {
26
return;
27
}
28
- if (typeof ScrollTimeline !== 'function') {
+
29
+ const ua = navigator.userAgent;
30
+ const supportsScrollTimeline =
31
+ typeof ScrollTimeline === 'function' &&
32
+ (ua.indexOf('Safari') === -1 ||
33
+ (ua.indexOf('iPhone') === -1 && ua.indexOf('iPad') === -1));
34
+ if (!supportsScrollTimeline) {
35
+ // TODO: Polyfill
36
37
38
// eslint-disable-next-line no-undef
0 commit comments