这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ericallam
Copy link

Allow the image to be scaled up/down at any time

…d allow the image to be scaled up/down at any time
@schneiderandre
Copy link
Owner

Thanks for this improvement, Eric!
Unfortunately, there is a shortcoming if you drag the image while it is scaled up. You have to touch the image 2 times to scale it up again, because scaledUp only gets updated in touchUpInside:, which isn't called if you pan the view.

This can easily be solved if we implement it as follows:

    if (self.isScaledUp) {
        [self scaleDownView:sender];
        return;
    }
    [self scaleUpView:sender];

and set the proper scaledUp value in scaleDownView: and scaleUpView:.

Does this look good to you?

@schneiderandre
Copy link
Owner

Another solution can be to simply pause the animation in touchDown:.

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

Successfully merging this pull request may close these issues.

2 participants