There was an error while loading. Please reload this page.
1 parent 2908bf8 commit d1d94f2Copy full SHA for d1d94f2
1 file changed
packages/docs/src/api/createZoomImageWheel.md
@@ -28,9 +28,10 @@ type ZoomImageWheelState = {
28
29
type Listener = (state: ZoomImageWheelState) => void
30
type ZoomImageWheelStateUpdate = {
31
- currentZoom: number
32
- enabled: boolean
+ enable: boolean
33
currentRotation: number
+ currentZoom: number
34
+ zoomTarget: HTMLElement | null
35
}
36
37
type ZoomImageWheelOptions = {
@@ -49,6 +50,9 @@ type ZoomImageWheelOptions = {
49
50
51
// Predicate function to determine if zoom should be triggered on a single touch action
52
shouldZoomOnSingleTouch?: () => boolean
53
+
54
+ // Zoom target element, default is the closest image element inside a container
55
+ zoomTarget?: HTMLElement | null
56
57
58
function createZoomImageWheel(
0 commit comments