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

How to restrict bounds while zooming and panning with 2 fingers. #108

Open
romaan-khan opened this issue Mar 23, 2021 · 1 comment
Open

Comments

@romaan-khan
Copy link

I want to zoom in and pan at the same time without going leaving the bounds. How can I achieve this ??

@Choongkyu
Copy link

are you talking about how this happens sometimes? If so, I'd like to know how to avoid this as well. For more reference, my zoomage tag is as follows:

    <com.jsibbold.zoomage.ZoomageView
            android:id="@+id/zoom_view"
            android:layout_width="match_parent"
            android:layout_height="350dp"
            android:backgroundTint="@color/colorPrimary"
            app:zoomage_restrictBounds="true"
            app:zoomage_animateOnReset="true"
            app:zoomage_autoResetMode="UNDER"
            app:zoomage_autoCenter="true"
            app:zoomage_zoomable="true"
            app:zoomage_minScale="1"
            app:zoomage_maxScale="8"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"
            android:layout_marginBottom="8dp" app:layout_constraintTop_toTopOf="parent"
/>

zoomage.mp4

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

2 participants