# Slow response to gestures on Android devices

**URL:** <https://forum.kirupa.com/t/slow-response-to-gestures-on-android-devices/319619>\
**Category:** flash\
**Created:** [February 26, 2011, 6:43pm UTC](https://forum.kirupa.com/t/slow-response-to-gestures-on-android-devices/319619 "2011-02-26T18:43:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcehnaids](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@pcehnaids](https://forum.kirupa.com/u/pcehnaids)\
**Post date:** [February 26, 2011, 6:43pm UTC](https://forum.kirupa.com/t/slow-response-to-gestures-on-android-devices/319619/1 "2011-02-26T18:43:32Z")

</div>

I have created an as3 program in which a safe dial is rotated with the multitouch gesture, rotate. I tested this program by exporting as a .apk and installing on several android devices (EVO, Galaxy S, and Nexus one). On each device when attempting to rotate with the rotate gesture, it takes a second to initially respond (if not responding at all), jumps to a position, then begins rotating normal.

I was wondering if this initial lag is just the response time of the devices or if I need to optimize my code further. Here is the gesture part of my code:

```auto

import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;

Multitouch.inputMode = MultitouchInputMode.GESTURE; this.addEventListener(TransformGestureEvent.GESTURE_ROTATE , onRotate);

//Cache dial
this.cacheAsBitmap = true;

private function onRotate(e:TransformGestureEvent):void
{
	//Rotate dial
	this.rotation += e.rotation;
}

```

Making the dial rotate correctly and accurately is essential to my program, so any advice would be greatly appreciated. If needed I can upload the .apk file.
