PinchClose not working

  1. 5 years ago

    I am using a pinchClose command on an object. It works like it should - but - and that's the problem - the attached action to the gesture is activated on any touch with 2 fingers on the object. Like a 2 fingers swipe will run the action attached to pinchClose.

    I see that in "jquery-jgestures.js" there is this: $.jGestures.defaults.thresholdPinchclose = 0.05;
    Does "thresholdPinchclose" means the distance in px that the user must move 2 fingers before it's detected as a pinchClose?
    If so, is it then possible to change the value with Javascript? Like: $.jGestures.defaults.thresholdPinchclose = 20;
    I have tried but it doesn't seem to work.

 

or Sign Up to reply!