@graphcommerce/framer-scroller 6.2.0-canary.64 → 6.2.0-canary.66
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 +12 -0
- package/hooks/useScroller.ts +4 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.66
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1993](https://github.com/graphcommerce-org/graphcommerce/pull/1993) [`f9bd75108`](https://github.com/graphcommerce-org/graphcommerce/commit/f9bd75108ecef583ecd32e701c10d70537cb8a89) - Fixed scrollers not working properly in Firefox due to the `draggable` html property being handled differently. Added event.preventDefault() onMouseDown to useScroller to prevent drag and drop functionality inside scrollers. ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
8
|
+
|
|
9
|
+
## 6.2.0-canary.65
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1996](https://github.com/graphcommerce-org/graphcommerce/pull/1996) [`3ed66a849`](https://github.com/graphcommerce-org/graphcommerce/commit/3ed66a849430d6ad1c46d20828eb988283da0c4a) - Added a disableZoom prop to SidebarGallery to disable all zoom functionality ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
14
|
+
|
|
3
15
|
## 6.2.0-canary.64
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/hooks/useScroller.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
PanInfo,
|
|
10
10
|
useTransform,
|
|
11
11
|
} from 'framer-motion'
|
|
12
|
-
import React, { ReactHTML, useEffect, useState } from 'react'
|
|
12
|
+
import React, { MouseEventHandler, ReactHTML, useEffect, useState } from 'react'
|
|
13
13
|
import { isHTMLMousePointerEvent } from '../utils/isHTMLMousePointerEvent'
|
|
14
14
|
import { scrollSnapTypeDirection, SnapTypeDirection } from '../utils/scrollSnapTypeDirection'
|
|
15
15
|
import { useScrollerContext } from './useScrollerContext'
|
|
@@ -88,6 +88,8 @@ export function useScroller<
|
|
|
88
88
|
setPanning(true)
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
const onMouseDown: MouseEventHandler<HTMLDivElement> = (event) => event.preventDefault()
|
|
92
|
+
|
|
91
93
|
const onPan: PanHandlers['onPan'] = (event, info: PanInfo) => {
|
|
92
94
|
if (!scrollerRef.current) return
|
|
93
95
|
|
|
@@ -275,6 +277,7 @@ export function useScroller<
|
|
|
275
277
|
onPanStart,
|
|
276
278
|
onPan,
|
|
277
279
|
onPanEnd,
|
|
280
|
+
onMouseDown,
|
|
278
281
|
children,
|
|
279
282
|
className: `${classes.root} ${props.className}`,
|
|
280
283
|
sx,
|
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.66",
|
|
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.66",
|
|
20
|
+
"@graphcommerce/image": "6.2.0-canary.66"
|
|
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.66",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.66",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.66"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@mui/material": "^5.10.16",
|