Swipe between pages - Forum

Forum Navigation
VisualNEO Products: Web, Win and PixelNEO
You need to log in to create posts and topics.

Swipe between pages

I created a web-app with 3 pages.

Is it possible to program to scroll between pages by swiping?

 

Best Regards,

 

Hi @guust

I have just done a plugin for you (it will be included in next release).
Please download this file with the plugin and sample app.
Let me know if it works for you.

Best regards.

Uploaded files:
  • You need to login to have access to uploads.

@Luishp

Super.

Works great!

Thanks!

Best regards,

 

It's really simple to use the plugin.
To install the plugin go to Options -> Add/Remove plugins and press the Add button.

In your App put this code in every page (select each page and press the "code" tab):

neoSwipe "pageName" "getSwipe"

Change "pageName" for the appropiate page name.

Then go to Project->Subroutines and press "Add NeoScript Subroutine"
Subroutine name: getSwipe
Add this code:

.Posible values "left" "right" "up" "down" "in" "out"
If [direction] == "left"
   GotoNextPage
ElseIf [direction] == "right"
   GotoPrevPage
EndIf

It's very important to add a parameter pressing the "+ Add..." button below:
Alias: [direction]
Type: VARREF
Done. Now you can swipe pages left and right.

 

It work great.

Only: The swipe function don't work at the first page.

Grtz,

Only: The swipe function don't work at the first page.

It's strange. It woks fine for me.
Have you tried my sample app?

Yes. It works perfect.

Mayby it's because I use two language selection buttons on the first page who are a link to the two other pages?

Once I clicked one of these buttons it works perfect on the other pages. Exept on the first page...

Hello everybody. It seems that NeoSwipe interferes with the scroll up-down function. Is is correct? Is it possible to activate left-right swiping without up-down scroll interference?

Please @fmorales can you attach a sample app showing the problem?
Thanks!

(The problem is only visible on a touch screen like phone or tablet)

In this example, the first page has the swipe function (is actually using only right and left) but the screen can't scroll down. The second page has no swipe function, but the same paragraph CAN scroll down. So the swipe up and down is interfering with the scrolling down function. Is there any solution?

Uploaded files:
  • You need to login to have access to uploads.

@fmorales, the problem is described here in the original JavaScript library documentation page:
http://labs.rampinteractive.co.uk/touchSwipe/docs/tutorial-Page_scrolling.html

Please download and replace yours with the attached plugin (scrolling set to auto).
Let me know if it works.
Regards.

Uploaded files:
  • You need to login to have access to uploads.

@fmorales, also take a look here:
https://www.youtube.com/watch?v=kn2Nn3k9mPc

Regards.

The corrected plugin works flawlessly! Thank you very much Luis.

Open chat
1
Do you need more info?
Hi, do you have any doubt?