Help! Demo in 4 days! How do you use Touch Move and Pinch Zoom in the same app?

Will be demoing my app in 4 days to a new client and need to let users recenter a map by dragging and in a separate action use Pinch Zoom to scale the map. I can do both individually by commenting out one of the actions, but can not have both active in the same build. Currently they both use the same listener and I suspect they will both need the Touch event on the background to work.

I based my code on the Pinch Zoom demo app. Any thoughts on what the secret is to determining when a user is doing pinch zoom and when they are trying to drag the map with their finger?

Thanks,

Dave [import]uid: 18679 topic_id: 6077 reply_id: 306077[/import]

+1 - similarly need both pinch zoom and translate!

Thanks! [import]uid: 9070 topic_id: 6077 reply_id: 22351[/import]

1+ [import]uid: 28068 topic_id: 6077 reply_id: 25861[/import]

well drag map would use 1 touch in one direction, and pinch/zoom would use 2 touches in opposing directions, no? [import]uid: 6645 topic_id: 6077 reply_id: 25862[/import]

Hi!
DiscWiz, did you solve your problem?
I’ve got the same problem in my app.

Anyone can help?

Thanks in advance. [import]uid: 44013 topic_id: 6077 reply_id: 27437[/import]

Not yet. My company is getting me a new Mac to code on and once I get back online plan on coding this. Will post my solution when done. [import]uid: 18679 topic_id: 6077 reply_id: 27521[/import]

anything yet? [import]uid: 28068 topic_id: 6077 reply_id: 28461[/import]

I’m not sure if this post could help…
http://developer.anscamobile.com/forum/2011/03/04/global-local-event-forwarding-table-listener

[import]uid: 44013 topic_id: 6077 reply_id: 28742[/import]

I posted some basic multi touch code some place.

All you need to do is detect if there’s more than 1 touch, if yes handle it as zoom, if not handle it as pan/move. [import]uid: 8872 topic_id: 6077 reply_id: 28797[/import]

Post your code so we can tell what you’re doing. [import]uid: 12108 topic_id: 6077 reply_id: 28937[/import]

Did anyone ever get this going who is willing to share??? I’ve played around with the sample code for each… but cant seem to get them going together in one app.
I want to be able to drag and pinch zoom a single image object on the screen.
Cheers
R [import]uid: 12583 topic_id: 6077 reply_id: 61821[/import]