Skip to main content
Participant
May 11, 2015
Question

Deactivate "double tap + swipe = zoom"-behavior (Flash, Air)

  • May 11, 2015
  • 2 replies
  • 638 views

Hello. It's about the zoom-feature which is triggered by double-tapping, directly followed by swipe. (so not releasing after last tap, but just swiping)

Currently, I'm working on a game-app, where this built-in feature is unfortunately very confusing.

I could also not find a related deactivation-option for the app itself (Android).

I'm using MultitouchInputMode.GESTURE.

Is there a built-in way to deactivate that by code? I have not found it so far.

Or is it planned to be introduced in a future version?

If yes, I would either think of deactivating it permanently, like:

NativeApplication.nativeApplication.doubleTapZoomeMode = false; // or so

Or even better: a preventable event that is dispatched right before TransformGestureEvent.GESTURE_ZOOM; (start-phase):

like DOUBLE_TAP_ZOOM; and the prevention of the event would cause the system to ignore the following touch action.

If there was no way, I had to create some workaround... but I want to avoid that if possible.

Thanks in advance.

Yves

This topic has been closed for replies.

2 replies

fredericb99676169
Known Participant
September 8, 2015

Thanks for the answer

I will try this solution!

fredericb99676169
Known Participant
August 31, 2015

Did you find a work around? I noticed the same behavior depending the android version.

Participant
September 7, 2015

Yes, I was able to come up with a little workaround, actually not too difficult. I am blocking the zoom-gesture handler whenever a double tap occured before.

On MouseEvent.DOUBLE_CLICK, which is on mobile devices dispatched when a double tap occurs, I set some boolean flag "_zoomPrevented" to true, and on TransformGestureEvent.GESTURE_ZOOM with event.phase == GesturePhase.END I set it to false again. And as long as _zoomPrevented is true, I abort the zoom-handler.

Hope, that this approach helps you, too.

btw: In my case it was Android Version 4.4.4 and the device was a Dell Venue 7.