Files
Haven/_HavenAndroid/fastlane/metadata/android/en-US/changelogs/2871.txt
T

19 lines
777 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
v5.24.23: pinch-zoom anchors to the finger centroid
The VNC and RDP viewers' pinch-zoom gesture was subtly wrong: the
zoom-around-centroid math assumed `graphicsLayer`'s scale pivot was
the view origin (0, 0), but the default `TransformOrigin` is the
view center. So every pinch away from the middle injected a
(centroid − center) worth of error into the pan, which the user
perceived as "the zoom flies off sideways".
Fixed the formula: the pan adjustment is now
pan' = (centroid − viewCenter) · (1 − r) + pan · r
where `r` is the *actual* applied scale (clamp-aware —
`newZoom / zoom`, not the raw finger ratio), so zooming at the min
or max zoom bound also behaves correctly.
Same fix applied to the RDP viewer, same issue.
No user-visible change otherwise.