Skip to content

Commit 885063e

Browse files
committed
fixed double-tap zoom scale limit bug
was capping double-tap destination scale at 1.0; this patch correctly sets the cap at maxScale
1 parent f09a9be commit 885063e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/qozix/layouts/ZoomPanLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ public boolean onTouchEvent( MotionEvent event ) {
778778
if ( determineIfQualifiedDoubleTap() ) {
779779
saveHistoricalScale();
780780
saveDoubleTapHistory();
781-
double destination = Math.min( 1, scale * 2 );
781+
double destination = Math.min( maxScale, scale * 2 );
782782
smoothScaleTo( destination, ZOOM_ANIMATION_DURATION );
783783
for ( GestureListener listener : gestureListeners ) {
784784
listener.onDoubleTap( actualPoint );

0 commit comments

Comments
 (0)