tidev/titanium-sdk

enableZoomControls on ImageView on Android pinch zoom behavior

eddyinet opened this issue · 0 comments

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

When enabling enableZoomControls on an ImageView in Android zooming out all the way and then zooming back using punch gesture lags or doesn't zoom out.

Expected Behavior

Pinching out at maximum zoom should zoom back out.

Actual behavior

Pinching out at maximum zoom doesn't register pinch gesture and zoom the image back out

Reproducible sample

const window = Ti.UI.createWindow();
window.add(Ti.UI.createImageView({
	image: "https://raw.githubusercontent.com/appcelerator/titanium_mobile/master/tests/Resources/ExifRotate270.jpg",
	scalingMode: Ti.Media.IMAGE_SCALING_ASPECT_FIT,
	enableZoomControls: true,
	width: Ti.UI.FILL,
	height: Ti.UI.FILL,
}));
window.open();

Steps to reproduce

Pinch all the way in on the image to max zoom and then pinch back out.

Platform

Android

SDK version you are using

11.1.0

Alloy version you are using

No response