@graphcommerce/framer-scroller 6.2.0-canary.69 → 6.2.0-canary.70
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 +6 -0
- package/hooks/useScroller.ts +7 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.70
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2010](https://github.com/graphcommerce-org/graphcommerce/pull/2010) [`236471e8c`](https://github.com/graphcommerce-org/graphcommerce/commit/236471e8ca892be337de31bd3d654f2ddddf8695) - Fixed bug which caused the sign in field to not be focusable ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
8
|
+
|
|
3
9
|
## 6.2.0-canary.69
|
|
4
10
|
|
|
5
11
|
## 6.2.0-canary.68
|
package/hooks/useScroller.ts
CHANGED
|
@@ -88,7 +88,13 @@ export function useScroller<
|
|
|
88
88
|
setPanning(true)
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
const onMouseDown: MouseEventHandler<HTMLDivElement> = (event) =>
|
|
91
|
+
const onMouseDown: MouseEventHandler<HTMLDivElement> = (event) => {
|
|
92
|
+
if (event.target instanceof Element) {
|
|
93
|
+
if (event.target.tagName === 'INPUT' || event.target.tagName === 'TEXTAREA') return
|
|
94
|
+
if (event.target.querySelector(':scope > input, :scope > textarea')) return
|
|
95
|
+
}
|
|
96
|
+
event.preventDefault()
|
|
97
|
+
}
|
|
92
98
|
|
|
93
99
|
const onPan: PanHandlers['onPan'] = (event, info: PanInfo) => {
|
|
94
100
|
if (!scrollerRef.current) return
|
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.
|
|
5
|
+
"version": "6.2.0-canary.70",
|
|
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.
|
|
20
|
-
"@graphcommerce/image": "6.2.0-canary.
|
|
19
|
+
"@graphcommerce/framer-utils": "6.2.0-canary.70",
|
|
20
|
+
"@graphcommerce/image": "6.2.0-canary.70"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
|
23
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.70",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.70",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.70"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@mui/material": "^5.10.16",
|