Skip to content

New finalScalePosition Param - #86

Closed
LiamBateman wants to merge 1 commit into
likashefqet:mainfrom
LiamBateman:extra-scale-param
Closed

LiamBateman wants to merge 1 commit into
likashefqet:mainfrom
LiamBateman:extra-scale-param

Conversation

@LiamBateman

Copy link
Copy Markdown

When we use the onPinchEnd event as so:

onPinchEnd={(e) => console.log('onPinchEnd', e)}

It returns only the scale change, not the new scale. I propose to include another parameter which returns the current scale as well.

This is super useful for matching other UI elements that may need to move in time with the image being scaled.

I've proposed the name 'finalScalePosition'.

(#83)

@likashefqet likashefqet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks fine, although I would suggest passing an animated scale value as a prop to the ImageZoom/Zoomable component for smoother animations that update in real time instead of waiting for the gesture to end. This value will reflect the component鈥檚 current scale and can be used to drive animations of other elements seamlessly during gestures.

@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions Bot added the Stale label Oct 8, 2025
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

This PR was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions Bot closed this Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants