Skip to content

Conversation

@edisonpagtakhan
Copy link

No description provided.

@dzemalibric
Copy link

This solution is buggy, instead, you can just add this code:

photoView.apply {
            maximumScale = MAX_SCALE
            mediumScale = MEDIUM_SCALE
            setOnScaleChangeListener { _, _, _ ->
                if (scale < minimumScale) {
                    minimumScale = scale
                } else if (scale < 1f) {
                    minimumScale = 1f
                }
            }
        }

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