Skip to content

Commit d1d94f2

Browse files
docs: update documentation for release 0.42.0 📜 (#378)
1 parent 2908bf8 commit d1d94f2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎packages/docs/src/api/createZoomImageWheel.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ type ZoomImageWheelState = {
2828

2929
type Listener = (state: ZoomImageWheelState) => void
3030
type ZoomImageWheelStateUpdate = {
31-
currentZoom: number
32-
enabled: boolean
31+
enable: boolean
3332
currentRotation: number
33+
currentZoom: number
34+
zoomTarget: HTMLElement | null
3435
}
3536

3637
type ZoomImageWheelOptions = {
@@ -49,6 +50,9 @@ type ZoomImageWheelOptions = {
4950

5051
// Predicate function to determine if zoom should be triggered on a single touch action
5152
shouldZoomOnSingleTouch?: () => boolean
53+
54+
// Zoom target element, default is the closest image element inside a container
55+
zoomTarget?: HTMLElement | null
5256
}
5357

5458
function createZoomImageWheel(

0 commit comments

Comments
 (0)