@graphcommerce/framer-scroller 6.2.0-canary.6 → 6.2.0-canary.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,123 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0-canary.61
4
+
5
+ ## 6.2.0-canary.60
6
+
7
+ ## 6.2.0-canary.59
8
+
9
+ ## 6.2.0-canary.58
10
+
11
+ ## 6.2.0-canary.57
12
+
13
+ ## 6.2.0-canary.56
14
+
15
+ ## 6.2.0-canary.55
16
+
17
+ ## 6.2.0-canary.54
18
+
19
+ ## 6.2.0-canary.53
20
+
21
+ ## 6.2.0-canary.52
22
+
23
+ ## 6.2.0-canary.51
24
+
25
+ ## 6.2.0-canary.50
26
+
27
+ ## 6.2.0-canary.49
28
+
29
+ ## 6.2.0-canary.48
30
+
31
+ ## 6.2.0-canary.47
32
+
33
+ ## 6.2.0-canary.46
34
+
35
+ ## 6.2.0-canary.45
36
+
37
+ ## 6.2.0-canary.44
38
+
39
+ ## 6.2.0-canary.43
40
+
41
+ ## 6.2.0-canary.42
42
+
43
+ ## 6.2.0-canary.41
44
+
45
+ ## 6.2.0-canary.40
46
+
47
+ ## 6.2.0-canary.39
48
+
49
+ ## 6.2.0-canary.38
50
+
51
+ ## 6.2.0-canary.37
52
+
53
+ ## 6.2.0-canary.36
54
+
55
+ ## 6.2.0-canary.35
56
+
57
+ ### Patch Changes
58
+
59
+ - [#1954](https://github.com/graphcommerce-org/graphcommerce/pull/1954) [`ec82fe49c`](https://github.com/graphcommerce-org/graphcommerce/commit/ec82fe49cd9aa0865b6c21eb405f05d8596748f6) - fix: prevent overlays from aut-closing on iOS 14 ([@FrankHarland](https://github.com/FrankHarland))
60
+
61
+ ## 6.2.0-canary.34
62
+
63
+ ## 6.2.0-canary.33
64
+
65
+ ## 6.2.0-canary.32
66
+
67
+ ## 6.2.0-canary.31
68
+
69
+ ## 6.2.0-canary.30
70
+
71
+ ## 6.2.0-canary.29
72
+
73
+ ## 6.2.0-canary.28
74
+
75
+ ## 6.2.0-canary.27
76
+
77
+ ## 6.2.0-canary.26
78
+
79
+ ## 6.2.0-canary.25
80
+
81
+ ## 6.2.0-canary.24
82
+
83
+ ## 6.2.0-canary.23
84
+
85
+ ## 6.2.0-canary.22
86
+
87
+ ## 6.2.0-canary.21
88
+
89
+ ### Minor Changes
90
+
91
+ - [#1937](https://github.com/graphcommerce-org/graphcommerce/pull/1937) [`a98e23e3a`](https://github.com/graphcommerce-org/graphcommerce/commit/a98e23e3a250157b9d3756b656f1a4c3c52b0ec0) - Assign correct scroll-snap-type type, to prevent error on firefox ([@mikekeehnen](https://github.com/mikekeehnen))
92
+
93
+ ## 6.2.0-canary.20
94
+
95
+ ## 6.2.0-canary.19
96
+
97
+ ## 6.2.0-canary.18
98
+
99
+ ## 6.2.0-canary.17
100
+
101
+ ## 6.2.0-canary.16
102
+
103
+ ## 6.2.0-canary.15
104
+
105
+ ## 6.2.0-canary.14
106
+
107
+ ## 6.2.0-canary.13
108
+
109
+ ## 6.2.0-canary.12
110
+
111
+ ## 6.2.0-canary.11
112
+
113
+ ## 6.2.0-canary.10
114
+
115
+ ## 6.2.0-canary.9
116
+
117
+ ## 6.2.0-canary.8
118
+
119
+ ## 6.2.0-canary.7
120
+
3
121
  ## 6.2.0-canary.6
4
122
 
5
123
  ## 6.1.1-canary.5
@@ -114,9 +114,24 @@ export function ScrollerProvider(props: ScrollerProviderProps) {
114
114
 
115
115
  const enableSnap = useCallback(() => {
116
116
  if (snap.get() === true) return
117
- if (scrollerRef.current) scrollerRef.current.style.scrollSnapType = ''
117
+ const scroller = scrollerRef.current
118
+ if (scroller) scroller.style.scrollSnapType = ''
119
+
118
120
  snap.set(true)
119
121
  scroll.animating.set(false)
122
+ // Fix for iOS Safari 14 where the scrollPosition would be reset to 0.
123
+ if (scroller) {
124
+ const { scrollLeft, scrollTop } = scroller
125
+ requestAnimationFrame(() => {
126
+ // We're forcing a layout calculation, else Safari 14 will still close.
127
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
128
+ const forceLayout = scroller.scrollTop
129
+ requestAnimationFrame(() => {
130
+ if (scroller.scrollTop === 0 && scrollTop !== 0) scroller.scrollTop = scrollTop
131
+ if (scroller.scrollLeft === 0 && scrollLeft !== 0) scroller.scrollLeft = scrollLeft
132
+ })
133
+ })
134
+ }
120
135
  }, [snap, scroll])
121
136
 
122
137
  useObserveItems(scrollerRef, items)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/framer-scroller",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "6.2.0-canary.6",
5
+ "version": "6.2.0-canary.61",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -16,13 +16,13 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "popmotion": "11.0.5",
19
- "@graphcommerce/framer-utils": "6.2.0-canary.6",
20
- "@graphcommerce/image": "6.2.0-canary.6"
19
+ "@graphcommerce/framer-utils": "6.2.0-canary.61",
20
+ "@graphcommerce/image": "6.2.0-canary.61"
21
21
  },
22
22
  "devDependencies": {
23
- "@graphcommerce/eslint-config-pwa": "6.2.0-canary.6",
24
- "@graphcommerce/prettier-config-pwa": "6.2.0-canary.6",
25
- "@graphcommerce/typescript-config-pwa": "6.2.0-canary.6"
23
+ "@graphcommerce/eslint-config-pwa": "6.2.0-canary.61",
24
+ "@graphcommerce/prettier-config-pwa": "6.2.0-canary.61",
25
+ "@graphcommerce/typescript-config-pwa": "6.2.0-canary.61"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@mui/material": "^5.10.16",