Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9782] Android: View:Pinch action is not very smooth on android 2.2

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T22:02:52.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112, qe-nfc
ReporterShyam Bhadauria
AssigneeEric Merriman
Created2012-06-25T04:12:17.000+0000
Updated2017-07-10T22:02:52.000+0000

Description

Feature not supported in 2.0.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 3) Pinch the displayed red view. Expected result: 3) After step 3, the view should respond to the pinch action smoothly. Actual result: 3) After step 3, the view do not responds to pinch action smoothly. After many tries, it resizes abruptly,allowing very little control to the user.

Comments

  1. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source