Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9782

Android: View:Pinch action is not very smooth on android 2.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Tested with Titanium SDK: 2.1.0.v20120622174154
      Tested with Titanium  Studio: 2.1.0.201206221045
      Device - Android 2.2.2 LG-P970,Motorola Milestone Android 2.2.1
      Machine OS - MAC 10.7.3

      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.

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13908
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code