Provides Swipe event to pages and Mobile events to objects.


Based on:


https://github.com/mattbryson/TouchSwipe-Jquery-Plugin

 

neoSwipe

Purpose:

Adds a Swipe event to an object and calls a subroutine when it happens.


It passes a value to the subroutine with possible values "left" "right" "up" "down" "in" and "out".

Category:

neoSwipe

Syntax:

neoSwipe objId customFunc

 

objId

Page or object to attach swipe event

customFunc

Subroutine to call when user swipes the page

 

neoMobileEvents

Purpose:

Adds mobile events to an object and calls a subroutine when it happens.


Each event sends different information to the subroutine (see description)

Category:

neoSwipe

Syntax:

neoMobileEvents "objId" customFunc customFunc2 customFunc3 customFunc4

 

objId

Object to attach events

customFunc

Swipe (sends direction, distance, duration, fingerCount)

customFunc2

Hold

customFunc3

Pinch In (sends direction, distance, duration, fingerCount, pinchZoom)

customFunc4

Pinch Out (sends direction, distance, duration, fingerCount, pinchZoom)

 

neoMobileEventsDisable

Purpose:

Disable mobile events

Category:

neoSwipe

Syntax:

neoMobileEventsDisable "objId"

 

objId

Object to disable events

 

neoMobileEventsEnable

Purpose:

Enable mobile events

Category:

neoSwipe

Syntax:

neoMobileEventsEnable "objId"

 

objId

Object to enable events

 

neoMobileEventsDestroy

Purpose:

Destroy mobile events

Category:

neoSwipe

Syntax:

neoMobileEventsDestroy