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

setting controller.aspectRatio to something larger than the original image's, will result miscalculations in collisions for vertical images #89

Open
ramtinq opened this issue Jul 10, 2023 · 0 comments

Comments

@ramtinq
Copy link

ramtinq commented Jul 10, 2023

Select a vertical image (aspectRatio less than 1), change the aspect ratio to something larger than its original ratio (e.g. 4 / 3), then the image cannot be dragged close to its top or bottom areas (it goes back, resetting the drag action). The bug does not occur, when, for example, you don't set controller.aspectRatio and just scale the image like controller.scale = 2.0. when just scaling or rotating, the image can be dragged to its topmost and lower areas as intended.

@ramtinq ramtinq changed the title setting controller.aspectRatio to something larger than 1 for vertical images will result miscalculations in collisions setting controller.aspectRatio to something larger than the original will result miscalculations in collisions for vertical images Jul 10, 2023
@ramtinq ramtinq changed the title setting controller.aspectRatio to something larger than the original will result miscalculations in collisions for vertical images setting controller.aspectRatio to something larger than the original image's, will result miscalculations in collisions for vertical images Jul 10, 2023
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

1 participant