function myTap(myWidget,gestureInfo)
{
alert(" single finger double tap Gesture detected");
}
function myTapp(myWidget,gestureInfo)
{
alert("double finger single Tap Gesture detected");
}
function mySwip(myWidget,gestureInfo)
{
if(gestureInfo.swipeDirection === 1){
alert("Swiped left");
}
else if(gestureInfo.swipeDirection === 2){
alert("Swiped right");
}
}
function mySwipp(myWidget,gestureInfo)
{
alert(" 2 finger swipe Gesture detected");
}
function myLong(myWidget,gestureInfo)
{
alert("long press Gesture detected");
}
function myLongg(myWidget,gestureInfo)
{
alert(" 8 second long press Gesture detected");
}
function myPinch(myWidget,gestureInfo)
{
alert(" Pinch detect");
}
function myPAN(myWidget,gestureInfo)
{
alert(" Rotation detect");
}
var setupTblTap = {fingers:1,taps:2};
var setupTblTapp = {fingers:2,taps:1};
var setupTblSwip = {fingers: 1, swipeDirection: 1};
var setupTblSwipp = {fingers: 2};
var setupTblLong = {pressDuration:4};
var setupTblLongg = {pressDuration:8};
var setuppinch = {fingers:2, continuousEvents:true};
//var setrotation ={fingers:2, continuousEvents :true};
var setPan ={fingers:1, continuousEvents :true};
function loadonpostshow(){
frmGesture.flxMain.addGestureRecognizer(1,setupTblTap,myTap);
frmGesture.flxMain.addGestureRecognizer(1,setupTblTapp,myTapp);
frmGesture.flxMain.addGestureRecognizer(2,setupTblSwip,mySwip);
frmGesture.flxMain.addGestureRecognizer(2,setupTblSwipp,mySwipp);
frmGesture.flxMain.addGestureRecognizer(3,setupTblLong,myLong);
frmGesture.flxMain.addGestureRecognizer(3,setupTblLong,myLongg);
frmGesture.flxMain.addGestureRecognizer(6,setuppinch,myPinch);
frmGesture.flxMain.img.addGestureRecognizer(4,setPan,myPAN);
}
{
alert(" single finger double tap Gesture detected");
}
function myTapp(myWidget,gestureInfo)
{
alert("double finger single Tap Gesture detected");
}
function mySwip(myWidget,gestureInfo)
{
if(gestureInfo.swipeDirection === 1){
alert("Swiped left");
}
else if(gestureInfo.swipeDirection === 2){
alert("Swiped right");
}
}
function mySwipp(myWidget,gestureInfo)
{
alert(" 2 finger swipe Gesture detected");
}
function myLong(myWidget,gestureInfo)
{
alert("long press Gesture detected");
}
function myLongg(myWidget,gestureInfo)
{
alert(" 8 second long press Gesture detected");
}
function myPinch(myWidget,gestureInfo)
{
alert(" Pinch detect");
}
function myPAN(myWidget,gestureInfo)
{
alert(" Rotation detect");
}
var setupTblTap = {fingers:1,taps:2};
var setupTblTapp = {fingers:2,taps:1};
var setupTblSwip = {fingers: 1, swipeDirection: 1};
var setupTblSwipp = {fingers: 2};
var setupTblLong = {pressDuration:4};
var setupTblLongg = {pressDuration:8};
var setuppinch = {fingers:2, continuousEvents:true};
//var setrotation ={fingers:2, continuousEvents :true};
var setPan ={fingers:1, continuousEvents :true};
function loadonpostshow(){
frmGesture.flxMain.addGestureRecognizer(1,setupTblTap,myTap);
frmGesture.flxMain.addGestureRecognizer(1,setupTblTapp,myTapp);
frmGesture.flxMain.addGestureRecognizer(2,setupTblSwip,mySwip);
frmGesture.flxMain.addGestureRecognizer(2,setupTblSwipp,mySwipp);
frmGesture.flxMain.addGestureRecognizer(3,setupTblLong,myLong);
frmGesture.flxMain.addGestureRecognizer(3,setupTblLong,myLongg);
frmGesture.flxMain.addGestureRecognizer(6,setuppinch,myPinch);
frmGesture.flxMain.img.addGestureRecognizer(4,setPan,myPAN);
}
call above function loadonpostshow() which page you want to use
0 comments:
Post a Comment