@graphcommerce/framer-scroller 1.1.21 → 1.1.25

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
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.24](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.23...@graphcommerce/framer-scroller@1.1.24) (2021-12-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framer-next-pages:** closing is janky, caused by setting pointer-events to none, trying without resetting the pointerevents ([9247fa3](https://github.com/ho-nl/m2-pwa/commit/9247fa312926416802abd68ea04b1e6b52531f2c))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.1.22](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.21...@graphcommerce/framer-scroller@1.1.22) (2021-12-22)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **framer-scroller:** make sure the first gallery dot is selected initially ([a2ed37b](https://github.com/ho-nl/m2-pwa/commit/a2ed37bd2c17eef46c0ee4cf8219a141b2e054b4))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.1.21](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.20...@graphcommerce/framer-scroller@1.1.21) (2021-12-22)
7
29
 
8
30
 
@@ -126,9 +126,9 @@ export default function ScrollerProvider(props: ScrollerProviderProps) {
126
126
  itemsArr.length = count
127
127
 
128
128
  items.set(
129
- itemsArr.fill(undefined).map<ItemState>(() => ({
130
- visibility: motionValue(0),
131
- opacity: motionValue(0.2),
129
+ itemsArr.fill(undefined).map<ItemState>((_, i) => ({
130
+ visibility: motionValue(i === 0 ? 1 : 0),
131
+ opacity: motionValue(i === 0 ? 1 : 0.2),
132
132
  })),
133
133
  )
134
134
  },
@@ -14,6 +14,10 @@ export function useScrollTo() {
14
14
  // In the future we want to move to browser native scrolling behavior, but since it is too slow we're not moving to that yet.
15
15
  // if ('scrollBehavior' in document.documentElement.style) {
16
16
  // scrollerRef.current.scrollTo({ left: to.x, top: to.y, behavior: 'smooth' })
17
+ // await new Promise((onComplete) => {
18
+ // setTimeout(onComplete, 2000)
19
+ // })
20
+ // return
17
21
  // }
18
22
 
19
23
  const xDone = new Promise<void>((onComplete) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/framer-scroller",
3
- "version": "1.1.21",
3
+ "version": "1.1.25",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "dev": "tsc -W"
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@graphcommerce/framer-utils": "^2.103.20",
20
20
  "@graphcommerce/image": "^2.105.11",
21
- "@graphcommerce/next-ui": "^3.21.11",
21
+ "@graphcommerce/next-ui": "^3.21.15",
22
22
  "@material-ui/core": "^4.12.3",
23
23
  "popmotion": "11.0.3"
24
24
  },
@@ -36,5 +36,5 @@
36
36
  "react-dom": "^17.0.2",
37
37
  "type-fest": "^2.8.0"
38
38
  },
39
- "gitHead": "69021da9f882aed2f55a4f437b8e03ef802e805c"
39
+ "gitHead": "a9174584cfeb04807a72b6c609175c24e24ac818"
40
40
  }