Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9784] Android: View:Pinching stops showing zooming in when device is rotated from portrait to landscape

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-27T21:09:03.000+0000
Affected Version/sRelease 2.1.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112, qe-nfc
ReporterShyam Bhadauria
AssigneeEric Merriman
Created2012-06-25T04:16:44.000+0000
Updated2017-07-27T21:09:03.000+0000

Description

Feature not supported in 2.0.2. Below code works as expected on Android 2.2 Steps to reproduce: 1) Use the code below
var win = Titanium.UI.createWindow();
win.backgroundColor = '#fff';
		 
		var view = Ti.UI.createView({
		    height: 250,
		    width: 250,
		    backgroundColor: '#a00'
		});
		 
		view.addEventListener('pinch', function(e) {
		    view.height = baseHeight * e.scale;
		    view.width = baseWidth * e.scale;
		});
		
		view.addEventListener('touchstart', function(e) { 
		    baseHeight = view.height;
		    baseWidth = view.width;
		});
		 
win.add(view);
win.open();
2) Run the app in portrait mode 3) Pinch to zoom in the displayed red view. 4) Rotate the device to landscape mode. 5) Pinch to zoom in once and then pinch to zoom out the red view. Expected result: 3) After step 3, the view should get bigger in size. 5) After step 5, the view should get bigger on zoom in and smaller on zoom out. Actual result: 3) After step 3, the view gets bigger in size. 5) After step 5, the view gets bigger on zoom in but do not gets smaller on zoom out. If the device is rotated to portrait mode now, the zoom out effect appears on view.

Comments

  1. jithinpv 2013-02-25

    This bug is reproducible in both sdk versions 3.0.2, 3.1.0. In landscape mode zoom out does not display the result, but if we rotated the device into portrait mode we will able to see the result.
  2. Lee Morris 2017-07-27

    Closing due to inactivity. If this issue still exists, please raise a new ticket.

JSON Source