multi-touch - Forum

Forum Navigation
You need to log in to create posts and topics.

multi-touch

How can we use multi_touch(zoom the page) for Android application?

asmat has reacted to this post.
asmat

We will add that option into the Swipe plugin soon.

asmat has reacted to this post.
asmat

@asmat, please replace the neoSwipe plugin with the attached one.
It adds swipe, hold, pinch in and pinch out events on mobile devices to any object.
Let me know if it works for you.

Uploaded files:
  • You need to login to have access to uploads.
asmat has reacted to this post.
asmat

I have trailed it, the swipe do task same as mouse move action, hold works properly but pinch in and pinch out not work.

I hope, you should  fix that and  also I suggest you should add for swipe direction(left swipe, right swipe, top swipe, bottom swipe)

it means we should have a different subroutine for each of them.

@asmat, the plugin already manage direction for swipe. You must define a string variable within your subroutine to get the value.
There is a sample included with last VisualNEO installation.
Be sure to add as many parameters as necessary in each subroutine (direction, distance...)

Please make for me a sample such that task of  pinch in and pinch out are respectively zoom in and zoom out the page.

asmat has reacted to this post.
asmat

@asmat I will, but please be pacient as I'm  really busy these days.

Anyway, for the user being able to scale the whole app, I think you don't need any plugin.
I have not checked this with PhoneGap but it works for pure Web Apps:

  1. Go to Project ->Properties->Advanced->Default metadata
  2. Uncheck <meta name="viewport"...>
  3. Go to Custom Metadata and add this into the head section:
<meta name="viewport" content="width=1050, user-scalable=yes">

Change the 1050 value for the width of your app.

Probably you should also uncheck auto-size on Project->Properties->Size, but the app should keep adapting in size because the viewport meta tag.

asmat has reacted to this post.
asmat

How can we use swipe's subroutine action continuously?

I mean until our finger move on screen the action is done continuously.

How can we use swipe's subroutine action continuously?
I mean until our finger move on screen the action is done continuously.

I'm not sure if I understand what do you mean, but try using a Timer object to call the subroutine continuosly (each defined time interval), and just stop it on swipe.

Instance, I want to resize an object by using swipe, look at the following video:

http://tinyurl.com/y6efpdcs

How should I do that?

Here the distance and duration of swiping are important.

@asmat see the attached app (tested on FireFox and Chrome)
I have only implemented the up movement using Swipe event so you can understand how it works.
Take a look at the css class to see how animation is managed.

But I think you need to think a little more about your example as it's not exactly an swipe event.
In my opinion you should:

1) Detect mouse-down event.
2) Track mouse position with a timer and set transform scale accordingly.
3) Detect mouse-up.

Uploaded files:
  • You need to login to have access to uploads.
Vadim and asmat have reacted to this post.
Vadimasmat

That's good!

Thank you so much...