


Quote from luishp on April 8, 2019, 8:10 am@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.
@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.

Quote from asmat on April 8, 2019, 11:15 pmI 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.
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.

Quote from luishp on April 9, 2019, 9:34 am@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...)
@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...)

Quote from asmat on April 9, 2019, 9:25 pmPlease make for me a sample such that task of pinch in and pinch out are respectively zoom in and zoom out the page.
Please make for me a sample such that task of pinch in and pinch out are respectively zoom in and zoom out the page.


Quote from luishp on April 10, 2019, 9:23 amAnyway, 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:
- Go to Project ->Properties->Advanced->Default metadata
- Uncheck <meta name="viewport"...>
- 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.
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:
<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.

Quote from asmat on April 10, 2019, 2:23 pmHow 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.

Quote from luishp on April 10, 2019, 5:01 pmHow 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.
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.

Quote from asmat on April 10, 2019, 11:17 pmInstance, 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.
Instance, I want to resize an object by using swipe, look at the following video:
How should I do that?
Here the distance and duration of swiping are important.

Quote from luishp on April 11, 2019, 6:59 am@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.
@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.
