Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.5.1 (Release)
-
None
-
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
);
}
]]
>
</fx:Script>
<s:VGroup>
<s:Group id="zoomArea" width="500" height="300"/>
<s:Label id="scaleValues"/>
</s:VGroup>
</s:WindowedApplication>