Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28114

On Zoom Gesture, scalex and scaley are always equal to each other

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.5.1 (Release)
    • None
    • Events
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      I have tested this on Mac OSX 10.6 and on iOS, with the same results.
      The values of scaleX and scaleY on a TransformGestureEvent (GESTURE_ZOOM) are always equal.
      It can be easily seen by running the following code (Mac) and pinching on the group box:

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()">
      <fx:Script>
      <![CDATA[
      private function init():void{
      Multitouch.inputMode = MultitouchInputMode.GESTURE;
      zoomArea.addEventListener(TransformGestureEvent.GESTURE_ZOOM, function(e:TransformGestureEvent):void

      { if(e.phase==GesturePhase.UPDATE) scaleValues.text = e.scaleX+", "+e.scaleY; }

      );
      }
      ]]
      >
      </fx:Script>
      <s:VGroup>
      <s:Group id="zoomArea" width="500" height="300"/>
      <s:Label id="scaleValues"/>
      </s:VGroup>
      </s:WindowedApplication>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: