Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to keep transform translateX and translateY to be the same on max scale (scaleX, scaley) #16

Open
Maoravitan opened this issue Nov 19, 2020 · 0 comments

Comments

@Maoravitan
Copy link

Maoravitan commented Nov 19, 2020

Hi,
i try to keep the translateX and translateY to be the same when reaching the max zoom when scaleX or scaley === 3.
how can we do that?

but i also want it to be able to drag

Object {
  "scaleX": 3,
  "scaleY": 3,
  "translateX": -528.1742063998316, - > this keep changing when user keep doing zoom in
  "translateY": -173.31884437708027   - > this keep changing when user keep doing zoom in
}

tnx

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant