Skip to content

Conversation

@chrisnojima
Copy link
Contributor

No description provided.

})
const taps = Gesture.Exclusive(doubleTap, singleTap)

// this is nasty but i need a way to force this component to render correctly. Passing new zoomScale
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there are 2 underyling issues i think with the native component. If the src changes you can get a really weird rendering artifact where it seems like its zoomed in a tremendous amount and you can't zoom out. Fixed this by entirely using a new key on the scale change. (below). On this line we need to 'jiggle' the zoomscale so it'll adopt it. If we don't do this you can log and see the scale is set and passed down but its not respected (the onScroll callback fires but not with this value)

@chrisnojima chrisnojima merged commit acf6990 into master Aug 14, 2024
@chrisnojima chrisnojima deleted the nojima/HOTPOT-heic-zoom branch August 14, 2024 18:39
mmaxim added a commit that referenced this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants