-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to scale only in 1 direction ? #13
Comments
I think I had similar case. What I did was
See the code example below:
The gestureMatrix is the one passed by the onMatrixUpdate Callback, which is the 'm' value in the example given by the author. Then you just use this xStretchedMatrix to pass to your CanvasPainter (if you are using this) or whatever method you use. Hope this helps. |
How can i set the minimum scale? I am facing the issue the minimal code is set initial Matrix4 value, when i zoom in using two finger the image is invisible MatrixGestureDetector(
thanks in advance |
I want to scale only in x direction but currently the scale gesture scales in both x and y like zooming. But i want stretch operation. How to solve this issue ?
The text was updated successfully, but these errors were encountered: