Closed blackadder1000 closed 3 years ago
@blackadder1000 In order to do some tests, some questions:
PinchToZoomContainer
without a Shell?Hi
Xamarin forms is 4.8.0.1560.
I will create a project now without a shell to test.
Thanks
Mike
HI @jsuarezruiz while creating the test projects and playing I have discovered exactly what causes the issue. If the Pinch to zoom container is inside a scroll view then you get the problem, if no scollview then UI behaves. This is a bit of a pain because of the screen contents. I have three images, two fits on the page third you can scroll down to see.
The below code works... but originally had scrollview around top stacklayout.
Should I be able to do it?
NON WORKING CODE
`
</ContentPage.Content>`
I have a Xamarins Form Shell project with a PinchToZoom code for a Content view. This works perfectly on IOS but on Android it's terrible. I have seen mentions of similar in the past but wondered if anyone has fixed this or worked around it?
My Code...
` public class PinchToZoomContainer : ContentView { private const double MIN_SCALE = 1; private const double MAX_SCALE = 4; private const double OVERSHOOT = 0.15; private double StartScale; private double LastX, LastY, StartX, StartY;
`