Skip to content
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

Pinch to zoom capabilities #31

Open
huemerS8 opened this issue Jun 1, 2021 · 4 comments
Open

Pinch to zoom capabilities #31

huemerS8 opened this issue Jun 1, 2021 · 4 comments

Comments

@huemerS8
Copy link

huemerS8 commented Jun 1, 2021

I am working on an App, where we want to draw with one finger and pinch to zoom with two fingers without pressing a button in between. Our problem is, that the drawing do not work properly, if we zoom in and try to draw because the image moves when drawing.
Are there any solutions for this problem?

@bdlukaa
Copy link

bdlukaa commented Jun 1, 2021

Are you using the InteractiveViewer widget?

@huemerS8
Copy link
Author

huemerS8 commented Jun 2, 2021

Yes

@NTJ3
Copy link

NTJ3 commented Jun 15, 2021

I'm facing the same issue, Someone has an idea how to deal with it?

@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Jun 25, 2021

I've currently no time to update this widget or do much support but here is a guess:

  1. Wrap the PainterController in an IgnorePointer
  2. Try using the GestureScaleStartCallback of the InteractiveViewer (and respectivly the GestureScaleEndCallback) to set the ignoring bool of the IgnorePointer to true (and false respectivly)

Report back if that worked 😃

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

No branches or pull requests

3 participants